mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 12:32:09 +03:00
Get rid of nasty infinite loop in while example
This commit is contained in:
parent
2fd1664c29
commit
33af584ad4
@ -194,6 +194,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