Implement clear() for CountTableRef. Fixes #4325.
This commit is contained in:
parent
58bb12d5ce
commit
acbb03ee5e
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ proc len*[A](t: CountTable[A]): int =
|
|||
## returns the number of keys in `t`.
|
||||
result = t.counter
|
||||
|
||||
proc clear*[A](t: CountTable[A] | CountTable[A]) =
|
||||
proc clear*[A](t: CountTable[A] | CountTableRef[A]) =
|
||||
## Resets the table so that it is empty.
|
||||
clearImpl()
|
||||
t.counter = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue