summaryrefslogtreecommitdiff
path: root/test
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
commit8b1d611da4bac7b94a4feb6e3f961fd01c3cd207 (patch)
tree6ca4083ef3b401a95d7d961c3ad6d52e8bc046d3 /test
parent845d5d651d454e06036fa3c149b783d5fdafc78d (diff)
* test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):
-> style block no longer available. [ruby-dev:28958] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 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