diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-11-25 15:03:43 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-11-25 15:03:43 +0100 |
commit | eaed36092c5caa5854dcdb4bb205a3c1050e323c (patch) | |
tree | ef6285caa2b7675d8febad1042ccd6a1b929bd9a | |
parent | cfe4e78aa65c3f3ac687e7d9b880bf78bd3bcc4c (diff) | |
parent | 3c70a2e914ea321892d397129805d6b0e200bda6 (diff) | |
download | Nim-eaed36092c5caa5854dcdb4bb205a3c1050e323c.tar.gz |
Merge pull request #3573 from yglukhov/doc-fix
Fixed documentation of nnkLet AST
-rw-r--r-- | doc/astspec.txt | 8 |
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 |