summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-11-25 15:03:43 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-11-25 15:03:43 +0100
commiteaed36092c5caa5854dcdb4bb205a3c1050e323c (patch)
treeef6285caa2b7675d8febad1042ccd6a1b929bd9a
parentcfe4e78aa65c3f3ac687e7d9b880bf78bd3bcc4c (diff)
parent3c70a2e914ea321892d397129805d6b0e200bda6 (diff)
downloadNim-eaed36092c5caa5854dcdb4bb205a3c1050e323c.tar.gz
Merge pull request #3573 from yglukhov/doc-fix
Fixed documentation of nnkLet AST
-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