summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-07-22 20:23:19 +0200
committerAraq <rumpf_a@web.de>2014-07-22 20:23:19 +0200
commit725cf0e22d4f8185e8b6d182f7e8a959b77e049a (patch)
tree647e479830b8ae41583b9a9e9dae9dc0c3b53392 /lib
parente27c675293b2241c0794020de80c4d46b2423d91 (diff)
downloadNim-725cf0e22d4f8185e8b6d182f7e8a959b77e049a.tar.gz
'[]' for crit bit trees doesn't need the 'var' parameter
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/critbits.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/critbits.nim b/lib/pure/collections/critbits.nim
index 40a02b651..1fde1f419 100644
--- a/lib/pure/collections/critbits.nim
+++ b/lib/pure/collections/critbits.nim
@@ -131,7 +131,7 @@ proc `[]=`*[T](c: var TCritBitTree[T], key: string, val: T) =
   var n = rawInsert(c, key)
   n.val = val
 
-proc `[]`*[T](c: var TCritBitTree[T], key: string): T {.inline.} =
+proc `[]`*[T](c: TCritBitTree[T], key: string): T {.inline.} =
   ## retrieves the value at ``c[key]``. If `key` is not in `t`,
   ## default empty value for the type `B` is returned
   ## and no exception is raised. One can check with ``hasKey`` whether the key