Fixed a wrong AST example (#8269)

This commit is contained in:
Quelklef 2018-07-11 02:52:09 -04:00 • committed by Andreas Rumpf
commit 6fe79fd158

View file

@ -1270,11 +1270,11 @@ AST:
nnkIdent("float32"), nnkIdent("float32"),
nnkEmpty() nnkEmpty()
) )
),
nnkPragma(nnkIdent("inline")), nnkPragma(nnkIdent("inline")),
nnkEmpty(), # reserved slot for future use nnkEmpty(), # reserved slot for future use
nnkStmtList(nnkDiscardStmt(nnkEmpty())) # the meat of the proc nnkStmtList(nnkDiscardStmt(nnkEmpty())) # the meat of the proc
) )
)
There is another consideration. Nim has flexible type identification for There is another consideration. Nim has flexible type identification for
its procs. Even though ``proc(a: int, b: int)`` and ``proc(a, b: int)`` its procs. Even though ``proc(a: int, b: int)`` and ``proc(a, b: int)``