summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorHamid Bluri <hr.bolouri@gmail.com>2022-01-18 12:55:39 -0800
committerGitHub <noreply@github.com>2022-01-18 15:55:39 -0500
commit5d303762f156a276cb37162229e6b82b01e08253 (patch)
tree41a429fd7ecc31b7f13c74091f59bcbcf7e04aab
parentbc3bee54698b108977766b6b2daf8a33bd00d1ef (diff)
downloadNim-5d303762f156a276cb37162229e6b82b01e08253.tar.gz
update deprecated example (#19415)
`toNimIdent` proc is deprecated, so I replaced it with `ident` proc
-rw-r--r--lib/core/macros.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index ed7e85c64..8ab893d21 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -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: