diff options
Diffstat (limited to 'test/ruby/test_lambda.rb')
-rw-r--r-- | test/ruby/test_lambda.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb index 24efa71bc1..f45ca6af71 100644 --- a/test/ruby/test_lambda.rb +++ b/test/ruby/test_lambda.rb @@ -91,7 +91,7 @@ class TestLambdaParameters < Test::Unit::TestCase end def return_in_current(val) - 1.tap &->(*) {return 0} + 1.tap(&->(*) {return 0}) val end @@ -100,7 +100,7 @@ class TestLambdaParameters < Test::Unit::TestCase end def return_in_callee(val) - yield_block &->(*) {return 0} + yield_block(&->(*) {return 0}) val end |