Skip to content

Commit

Permalink
update deprecated example (#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 Jan 18, 2022
1 parent bc3bee5 commit 5d30376
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 5d30376

Please sign in to comment.