diff options
author | Araq <rumpf_a@web.de> | 2016-10-02 14:16:38 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-10-08 10:47:47 +0200 |
commit | 80ad3d3441ad939e6f7ff14e6370dcce4d58e6ec (patch) | |
tree | 38082ec5b8073051373450c116a344d36211ae1d /lib | |
parent | f721bdb8f526dad3facb121ebfd439f8584a2346 (diff) | |
download | Nim-80ad3d3441ad939e6f7ff14e6370dcce4d58e6ec.tar.gz |
fixes #4844
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/collections/tables.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim index 9fa8f5263..778ea5ca3 100644 --- a/lib/pure/collections/tables.nim +++ b/lib/pure/collections/tables.nim @@ -118,7 +118,11 @@ template dataLen(t): untyped = len(t.data) include tableimpl -proc clear*[A, B](t: var Table[A, B] | TableRef[A, B]) = +proc clear*[A, B](t: var Table[A, B]) = + ## Resets the table so that it is empty. + clearImpl() + +proc clear*[A, B](t: TableRef[A, B]) = ## Resets the table so that it is empty. clearImpl() |