summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_lambda.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-04 18:10:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-04 18:10:38 +0000
commitbf254f54facddcced2c6ace6916cf518cf82e2db (patch)
tree6ca4083ef3b401a95d7d961c3ad6d52e8bc046d3 /test/ruby/test_lambda.rb
parent8fc8e1b6c4f72988007bb9c3c95e2f2bd3d563e2 (diff)
downloadruby-bf254f54facddcced2c6ace6916cf518cf82e2db.tar.gz
ruby-bf254f54facddcced2c6ace6916cf518cf82e2db.tar.xz
ruby-bf254f54facddcced2c6ace6916cf518cf82e2db.zip
* test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):
-> style block no longer available. [ruby-dev:28958] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_lambda.rb')
-rw-r--r--test/ruby/test_lambda.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb
index d65ab7667..53a7562c8 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