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:
parent
234a30459c
commit
9d091c851a
@ -1,7 +1,7 @@
|
|||||||
require 'timeout'
|
require 'timeout'
|
||||||
|
|
||||||
def progress(n = 5)
|
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"
|
puts "never reach"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user