summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-22 13:01:17 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-22 13:01:17 (GMT)
commit9d091c851a6029ac477ecde30766b2d25bad637b (patch)
tree1f1a3d52319892b094e42c639bd7fd20b07bed71 /sample
parent234a30459cdae6aa7da6e28a1082d9c11f315696 (diff)
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
Diffstat (limited to 'sample')
-rw-r--r--sample/timeout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/timeout.rb b/sample/timeout.rb
index 3291ae7..ad4459a 100644
--- a/sample/timeout.rb
+++ b/sample/timeout.rb
@@ -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