strtabs: fixes stupid typo

This commit is contained in:
Andreas Rumpf
2018-04-30 12:54:55 +02:00
parent b56f2f116d
commit e53b49d024

View File

@@ -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 =