'[]' for crit bit trees doesn't need the 'var' parameter
This commit is contained in:
parent
e27c675293
commit
725cf0e22d
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ proc `[]=`*[T](c: var TCritBitTree[T], key: string, val: T) =
|
||||||
var n = rawInsert(c, key)
|
var n = rawInsert(c, key)
|
||||||
n.val = val
|
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`,
|
## retrieves the value at ``c[key]``. If `key` is not in `t`,
|
||||||
## default empty value for the type `B` is returned
|
## default empty value for the type `B` is returned
|
||||||
## and no exception is raised. One can check with ``hasKey`` whether the key
|
## and no exception is raised. One can check with ``hasKey`` whether the key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue