summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ruby.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown
index 531971e9..a277667b 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -195,6 +195,7 @@ end
counter = 1
while counter <= 5 do
puts "iteration #{counter}"
+ counter += 1
end
#=> iteration 1
#=> iteration 2