diff options
author | Araq <rumpf_a@web.de> | 2016-01-18 20:12:16 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-01-18 20:12:16 +0100 |
commit | aa7a1e3e90ced352b82f3d4bc2aa767b0545e79b (patch) | |
tree | 06fc9485ac1fbe9379b854666fd416c1a5541a5f | |
parent | 3e8ac551c7d28b65ff6ec622e5ea8f544988a967 (diff) | |
download | Nim-aa7a1e3e90ced352b82f3d4bc2aa767b0545e79b.tar.gz |
fixes long standing typo in tut2
-rw-r--r-- | doc/tut2.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt index 7479d8479..563344570 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -112,7 +112,7 @@ Example: Sym = object # a symbol name: string # the symbol's name line: int # the line the symbol was declared in - code: PNode # the symbol's abstract syntax tree + code: Node # the symbol's abstract syntax tree Type conversions @@ -162,11 +162,11 @@ An example: of nkFloat: floatVal: float of nkString: strVal: string of nkAdd, nkSub: - leftOp, rightOp: PNode + leftOp, rightOp: Node of nkIf: - condition, thenPart, elsePart: PNode + condition, thenPart, elsePart: Node - var n = PNode(kind: nkFloat, floatVal: 1.0) + var n = Node(kind: nkFloat, floatVal: 1.0) # the following statement raises an `FieldError` exception, because # n.kind's value does not fit: n.strVal = "" |