diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_lambda.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb index d65ab7667f..53a7562c8e 100644 --- a/test/ruby/test_lambda.rb +++ b/test/ruby/test_lambda.rb @@ -47,7 +47,7 @@ class TestLambdaParameters < Test::Unit::TestCase def test_lambda_as_iterator a = 0 - 2.times ->(_){ a += 1 } + 2.times(&->(_){ a += 1 }) assert_equal(a, 2) end end |