From 0e7c7eeda44b6affb5608bf25713997cb490cec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mac=C3=ADas?= Date: Fri, 18 Jul 2014 12:07:18 +0100 Subject: [PATCH] Need to call iterator in for loop --- content/for_iterators.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/for_iterators.md b/content/for_iterators.md index a97d7c2..2229cca 100644 --- a/content/for_iterators.md +++ b/content/for_iterators.md @@ -105,7 +105,7 @@ echo output output = "" let countTo9 = countTo(9) -for i in countTo9: +for i in countTo9(): output.add($i) echo output ``` @@ -114,4 +114,4 @@ $ nimrod c -r ./closure_iter.nim 0 12345678910111213141516171819200 0123456789 -``` \ No newline at end of file +```