summary refs log tree commit diff stats
path: root/doc/tut2.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-01-23 13:30:26 -0800
committerAraq <rumpf_a@web.de>2013-01-23 13:30:26 -0800
commitb0b4150df1507408a19ece95d79bb1700d05cdf0 (patch)
tree6dc46a00c2d9ab406453f8fbbeb6ba95a2c2a639 /doc/tut2.txt
parent5568f85449cb193a0b81f0f3cb6c189cf0b4164c (diff)
parent91700f29e718e41026b536d72b9ff010a4574bf2 (diff)
downloadNim-b0b4150df1507408a19ece95d79bb1700d05cdf0.tar.gz
Merge pull request #316 from gradha/pr_renames_each_to_map
Renames each proc to map, each is left deprecated.
Diffstat (limited to 'doc/tut2.txt')
-rwxr-xr-xdoc/tut2.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt
index 4a4ef1757..c080d1339 100755
--- a/doc/tut2.txt
+++ b/doc/tut2.txt
@@ -218,7 +218,7 @@ So "pure object oriented" code is easy to write:
   import strutils
   
   stdout.writeln("Give a list of numbers (separated by spaces): ")
-  stdout.write(stdin.readLine.split.each(parseInt).max.`$`)
+  stdout.write(stdin.readLine.split.map(parseInt).max.`$`)
   stdout.writeln(" is the maximum!")