1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 20:10:49 +02:00

Merge pull request #108 from davefp/patch-3

Get rid of nasty infinite loop in while example
This commit is contained in:
Adam Bard
2013-07-07 23:31:53 -07:00

View File

@@ -195,6 +195,7 @@ end
counter = 1
while counter <= 5 do
puts "iteration #{counter}"
counter += 1
end
#=> iteration 1
#=> iteration 2