mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
strtabs: fixes stupid typo
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user