summaryrefslogtreecommitdiffhomepage
path: root/ruby.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-07-07 23:31:53 -0700
committerAdam Bard <github@adambard.com>2013-07-07 23:31:53 -0700
commitcbcf45743a3354ab5a41522f75d55eb200b29670 (patch)
treee94d57aacb1235dc1b5d7f27956215851fec27f1 /ruby.html.markdown
parent4936dcf810b7c351137c4168b52074eb821b45d8 (diff)
parent33af584ad4e72084d124ed05a9c65f155e56bded (diff)
Merge pull request #108 from davefp/patch-3
Get rid of nasty infinite loop in while example
Diffstat (limited to 'ruby.html.markdown')
-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