diff options
-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 |