summary refs log tree commit diff stats
path: root/doc/manual/templates.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-14 11:50:10 +0100
committerAraq <rumpf_a@web.de>2014-12-14 11:50:10 +0100
commit9724bd4e1b44a23650b0f74c90766fe937ad778b (patch)
treed67f7fe18158ccc95888e107611598389deec14a /doc/manual/templates.txt
parentbebac34f878a87419c5d0e24a18edb50ebad5f0a (diff)
downloadNim-9724bd4e1b44a23650b0f74c90766fe937ad778b.tar.gz
minor improvements to the docs
Diffstat (limited to 'doc/manual/templates.txt')
-rw-r--r--doc/manual/templates.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/templates.txt b/doc/manual/templates.txt
index d90c2203e..64bf71a96 100644
--- a/doc/manual/templates.txt
+++ b/doc/manual/templates.txt
@@ -250,7 +250,7 @@ Another common example is this:
     yield "Hello"
     yield "World"
 
-  var info = something().toSeq()
+  var info = toSeq(something())
 
 The problem here is that the compiler already decided that ``something()`` as
 an iterator is not callable in this context before ``toSeq`` gets its