1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

sample/timeout.rb: Remove unnecessary increment [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-03-22 13:01:17 +00:00
parent 234a30459c
commit 9d091c851a

View file

@ -1,7 +1,7 @@
require 'timeout'
def progress(n = 5)
n.times {|i| print i; STDOUT.flush; sleep 1; i+= 1}
n.times {|i| print i; STDOUT.flush; sleep 1}
puts "never reach"
end