update deprecated example (#19415)
`toNimIdent` proc is deprecated, so I replaced it with `ident` proc
This commit is contained in:
parent
bc3bee5469
commit
5d303762f1
1 changed files with 1 additions and 1 deletions
|
|
@ -1373,7 +1373,7 @@ template findChild*(n: NimNode; cond: untyped): NimNode {.dirty.} =
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
## var res = findChild(n, it.kind == nnkPostfix and
|
## var res = findChild(n, it.kind == nnkPostfix and
|
||||||
## it.basename.ident == toNimIdent"foo")
|
## it.basename.ident == ident"foo")
|
||||||
block:
|
block:
|
||||||
var res: NimNode
|
var res: NimNode
|
||||||
for it in n.children:
|
for it in n.children:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue