Fixed a wrong AST example (#8269)
This commit is contained in:
parent
25bf0d1683
commit
6fe79fd158
1 changed files with 4 additions and 4 deletions
|
|
@ -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)``
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue