diff options
author | Araq <rumpf_a@web.de> | 2014-08-23 01:43:49 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-23 01:43:49 +0200 |
commit | 2f43fdb8379acd783beee58b1b2c8225a486a70c (patch) | |
tree | 3381ea28e5c2709bafeaf31eb8a7cc9b15c8b8b2 /lib/pure/collections/sets.nim | |
parent | fc0fda14ae1caf83d1b39029bebb702ff306b1e0 (diff) | |
download | Nim-2f43fdb8379acd783beee58b1b2c8225a486a70c.tar.gz |
renamefest
Diffstat (limited to 'lib/pure/collections/sets.nim')
-rw-r--r-- | lib/pure/collections/sets.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim index 22eff9c55..3adf21a25 100644 --- a/lib/pure/collections/sets.nim +++ b/lib/pure/collections/sets.nim @@ -129,7 +129,7 @@ proc mget*[A](s: var TSet[A], key: A): var A = assert s.isValid, "The set needs to be initialized." var index = rawGet(s, key) if index >= 0: result = t.data[index].key - else: raise newException(EInvalidKey, "key not found: " & $key) + else: raise newException(KeyError, "key not found: " & $key) proc contains*[A](s: TSet[A], key: A): bool = ## Returns true iff `key` is in `s`. |