summary refs log tree commit diff stats
path: root/doc/astspec.txt
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2015-11-23 13:02:32 +0200
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2015-11-23 13:02:32 +0200
commit3c70a2e914ea321892d397129805d6b0e200bda6 (patch)
tree408a59e466cc89a03e1886e6e2063084e68f9f5c /doc/astspec.txt
parentba6d0eb4db5bb85c772dea3d4c5afb2bfbb5a6d5 (diff)
downloadNim-3c70a2e914ea321892d397129805d6b0e200bda6.tar.gz
doc fix
Diffstat (limited to 'doc/astspec.txt')
-rw-r--r--doc/astspec.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/astspec.txt b/doc/astspec.txt
index c84fad8e8..f235e2984 100644
--- a/doc/astspec.txt
+++ b/doc/astspec.txt
@@ -924,9 +924,11 @@ AST:
 
 .. code-block:: nim
   nnkLetSection(
-    nnkIdentDefs(!"v"),
-    nnkEmpty(), # for the type
-    nnkIntLit(3)
+    nnkIdentDefs(
+      nnkIdent(!"a"),
+      nnkEmpty(), # or nnkIdent(...) for the type
+      nnkIntLit(3),
+    )
   )
 
 Const section