aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-22 13:01:17 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-22 13:01:17 +0000
commit0531762efa4804a2f0e38393f1dceb60a1ff375a (patch)
tree1f1a3d52319892b094e42c639bd7fd20b07bed71 /sample
parent038e543ed1d1a3a3590e9205c71ea5cfe7a5931e (diff)
downloadruby-0531762efa4804a2f0e38393f1dceb60a1ff375a.tar.gz
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 3291ae7e80..ad4459aff0 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