diff options
Diffstat (limited to 'doc/tut2.rst')
-rw-r--r-- | doc/tut2.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tut2.rst b/doc/tut2.rst index 577b65622..94725a5d8 100644 --- a/doc/tut2.rst +++ b/doc/tut2.rst @@ -511,8 +511,8 @@ containers: iterator preorder*[T](root: BinaryTree[T]): T = # Preorder traversal of a binary tree. - # Since recursive iterators are not yet implemented, - # this uses an explicit stack (which is more efficient anyway): + # This uses an explicit stack (which is more efficient than + # a recursive iterator factory). var stack: seq[BinaryTree[T]] = @[root] while stack.len > 0: var n = stack.pop() |