diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-02-06 02:45:16 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-02-06 02:45:16 +0100 |
commit | 902a40ffcc162ce2e61618a9ede9762ca2a010e5 (patch) | |
tree | f8687654e56b001cf7be030116213172f7236e58 | |
parent | 3be07d842a13cde69aeb5e7908ed62907daef4f7 (diff) | |
parent | f05acd9612959860cdf55c699e5f097cf6692639 (diff) | |
download | Nim-902a40ffcc162ce2e61618a9ede9762ca2a010e5.tar.gz |
Merge pull request #876 from superfunc/devel
Fixed typo's in tutorial 2
-rw-r--r-- | doc/tut2.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt index 581239cc7..6738c5551 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -528,7 +528,7 @@ containers: proc newNode*[T](data: T): PBinaryTree[T] = # constructor for a node new(result) - result.dat = data + result.data = data proc add*[T](root: var PBinaryTree[T], n: PBinaryTree[T]) = # insert a node into the tree @@ -569,7 +569,7 @@ containers: var root: PBinaryTree[string] # instantiate a PBinaryTree with ``string`` - add(root, newNode("hallo")) # instantiates ``newNode`` and ``add`` + add(root, newNode("hello")) # instantiates ``newNode`` and ``add`` add(root, "world") # instantiates the second ``add`` proc for str in preorder(root): stdout.writeln(str) |