mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #108 from davefp/patch-3
Get rid of nasty infinite loop in while example
This commit is contained in:
commit
cbcf45743a
@ -195,6 +195,7 @@ end
|
||||
counter = 1
|
||||
while counter <= 5 do
|
||||
puts "iteration #{counter}"
|
||||
counter += 1
|
||||
end
|
||||
#=> iteration 1
|
||||
#=> iteration 2
|
||||
|
Loading…
Reference in New Issue
Block a user