From 0d8fed7506b8d60b5d3450f5680307abe77f7714 Mon Sep 17 00:00:00 2001
From: Hamid Bluri
Date: Wed, 19 Jan 2022 00:17:34 +0330
Subject: [PATCH] update deprecated example
`toNimIdent` proc is deprecated, so I replaced it with `ident` proc
---
lib/core/macros.nim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index ed7e85c64fc7..8ab893d216af 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: