Nimrod -> Nim pt. 2
This commit is contained in:
parent
989058e4d7
commit
edfe80ca13
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ The first way is to use indenting, e.g. using `if-elif-else`, `while`, `for` sta
|
|||
|
||||
``` nimrod
|
||||
if true:
|
||||
echo "Nimrod is great!"
|
||||
echo "Nim is great!"
|
||||
|
||||
while false:
|
||||
echo "This line is never output!"
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ macro class*(head: expr, body: stmt): stmt {.immediate.} =
|
|||
# The macro is immediate so that it doesn't
|
||||
# resolve identifiers passed to it
|
||||
|
||||
var typeName, baseName: PNimrodNode
|
||||
var typeName, baseName: NimNode
|
||||
|
||||
if head.kind == nnkIdent:
|
||||
# `head` is expression `typeName`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue