diff options
Diffstat (limited to 'sample/blk.rb')
-rw-r--r-- | sample/blk.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/blk.rb b/sample/blk.rb index 12d1038fd0..e11cc026ea 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) |