summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-30 12:54:55 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-30 12:54:55 +0200
commite53b49d024c01c9740a9cbedd763dc22b6c3e2c2 (patch)
tree151bba4249ebad415668728b97abb72502cfa305
parentb56f2f116d563f34330e2efd50225184ba50de6a (diff)
downloadNim-e53b49d024c01c9740a9cbedd763dc22b6c3e2c2.tar.gz
strtabs: fixes stupid typo
-rw-r--r--lib/pure/strtabs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strtabs.nim b/lib/pure/strtabs.nim
index adce7a526..75f9b42cd 100644
--- a/lib/pure/strtabs.nim
+++ b/lib/pure/strtabs.nim
@@ -48,7 +48,7 @@ proc len*(t: StringTableRef): int {.rtlFunc, extern: "nst$1".} =
 iterator pairs*(t: StringTableRef): tuple[key, value: string] =
   ## iterates over every (key, value) pair in the table `t`.
   for h in 0..high(t.data):
-    if not t.data[h].hasValue:
+    if t.data[h].hasValue:
       yield (t.data[h].key, t.data[h].val)
 
 iterator keys*(t: StringTableRef): string =