diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-06-14 01:57:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-14 01:57:26 +0200 |
commit | 93424420d48929965929901c2d5698de189c1a34 (patch) | |
tree | b6a9b0ba1008439579386f3e15f7bacc9d66c039 /lib/pure | |
parent | 9bb31f62735aee84cdb08dde748ded7fcd0103e4 (diff) | |
parent | acbb03ee5e9cc0342e882f7b1ce883c8aed48401 (diff) | |
download | Nim-93424420d48929965929901c2d5698de189c1a34.tar.gz |
Merge pull request #4326 from kierdavis/fix-4325
Implement clear() for CountTableRef. Fixes #4325.
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/collections/tables.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim index da0b5422f..e454a43cb 100644 --- a/lib/pure/collections/tables.nim +++ b/lib/pure/collections/tables.nim @@ -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 |