diff options
author | superfunc <raspinudo@gmail.com> | 2014-02-05 16:56:43 -0800 |
---|---|---|
committer | superfunc <raspinudo@gmail.com> | 2014-02-05 16:56:43 -0800 |
commit | f05acd9612959860cdf55c699e5f097cf6692639 (patch) | |
tree | d414e5dfa592077cf5bc74aa90f4e32dbe90faa6 | |
parent | 672681dd4b897cc268174e09f3305656b6c75960 (diff) | |
download | Nim-f05acd9612959860cdf55c699e5f097cf6692639.tar.gz |
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) |