removed the deprecatedGet pragma
This commit is contained in:
parent
c623ab62cc
commit
dea9e38d26
1 changed files with 2 additions and 3 deletions
|
|
@ -186,14 +186,13 @@ template get[T](c: CritBitTree[T], key: string): T =
|
||||||
|
|
||||||
n.val
|
n.val
|
||||||
|
|
||||||
proc `[]`*[T](c: CritBitTree[T], key: string): T {.inline, deprecatedGet.} =
|
proc `[]`*[T](c: CritBitTree[T], key: string): T {.inline.} =
|
||||||
## retrieves the value at ``c[key]``. If `key` is not in `t`, the
|
## retrieves the value at ``c[key]``. If `key` is not in `t`, the
|
||||||
## ``KeyError`` exception is raised. One can check with ``hasKey`` whether
|
## ``KeyError`` exception is raised. One can check with ``hasKey`` whether
|
||||||
## the key exists.
|
## the key exists.
|
||||||
get(c, key)
|
get(c, key)
|
||||||
|
|
||||||
proc `[]`*[T](c: var CritBitTree[T], key: string): var T {.inline,
|
proc `[]`*[T](c: var CritBitTree[T], key: string): var T {.inline.} =
|
||||||
deprecatedGet.} =
|
|
||||||
## retrieves the value at ``c[key]``. The value can be modified.
|
## retrieves the value at ``c[key]``. The value can be modified.
|
||||||
## If `key` is not in `t`, the ``KeyError`` exception is raised.
|
## If `key` is not in `t`, the ``KeyError`` exception is raised.
|
||||||
get(c, key)
|
get(c, key)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue