Skip to content

Commit

Permalink
update deprecated example (nim-lang#19415)
Browse files Browse the repository at this point in the history
`toNimIdent` proc is deprecated, so I replaced it with `ident` proc
  • Loading branch information
hamidb80 authored and PMunch committed Mar 28, 2022
1 parent 77ccbaa commit 5cc6421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/macros.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ template findChild*(n: NimNode; cond: untyped): NimNode {.dirty.} =
##
## .. code-block:: nim
## var res = findChild(n, it.kind == nnkPostfix and
## it.basename.ident == toNimIdent"foo")
## it.basename.ident == ident"foo")
block:
var res: NimNode
for it in n.children:
Expand Down

0 comments on commit 5cc6421

Please sign in to comment.