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:
parent
234a30459c
commit
9d091c851a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue