summaryrefslogtreecommitdiff
path: root/sample/timeout.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/timeout.rb')
-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