strtabs: fixes stupid typo
This commit is contained in:
parent
b56f2f116d
commit
e53b49d024
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ proc len*(t: StringTableRef): int {.rtlFunc, extern: "nst$1".} =
|
||||||
iterator pairs*(t: StringTableRef): tuple[key, value: string] =
|
iterator pairs*(t: StringTableRef): tuple[key, value: string] =
|
||||||
## iterates over every (key, value) pair in the table `t`.
|
## iterates over every (key, value) pair in the table `t`.
|
||||||
for h in 0..high(t.data):
|
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)
|
yield (t.data[h].key, t.data[h].val)
|
||||||
|
|
||||||
iterator keys*(t: StringTableRef): string =
|
iterator keys*(t: StringTableRef): string =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue