From 725cf0e22d4f8185e8b6d182f7e8a959b77e049a Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 22 Jul 2014 20:23:19 +0200 Subject: '[]' for crit bit trees doesn't need the 'var' parameter --- lib/pure/collections/critbits.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure/collections/critbits.nim') 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 -- cgit 1.4.1-2-gfad0