summaryrefslogtreecommitdiff
path: root/sample/blk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/blk.rb')
-rw-r--r--sample/blk.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/blk.rb b/sample/blk.rb
index 12d1038fd09..e11cc026ea8 100644
--- a/sample/blk.rb
+++ b/sample/blk.rb
@@ -2,8 +2,8 @@ def foo()
$block = Block.new
end
-foo(){i| print "i = ", i, "\n"}
+foo(){|i| print "i = ", i, "\n"}
$block.call(2)
-foo(){i| print "i*2 = ", i*2, "\n"}
+foo(){|i| print "i*2 = ", i*2, "\n"}
$block.call(2)