diff --git a/ChangeLog b/ChangeLog index 03d0bc5759..b7fdb66a0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 5 01:12:19 2006 Yukihiro Matsumoto + + * test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator): + -> style block no longer available. [ruby-dev:28958] + Tue Jul 4 21:48:56 2006 NAKAMURA Usaku * ruby.c (proc_options): supress warning on DOSISH. 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