1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix wrong return value in proc documentation.

This commit is contained in:
Florian Heinle 2020-01-30 12:45:21 +01:00 committed by Aaron Patterson
parent 53adb53c9a
commit 39a1959d28
Notes: git 2020-01-31 05:35:44 +09:00

2
proc.c
View file

@ -3759,7 +3759,7 @@ proc_ruby2_keywords(VALUE procval)
*
* p = proc {|x, y| x }
* l = lambda {|x, y| x }
* [[1, 2], [3, 4]].map(&p) #=> [1, 2]
* [[1, 2], [3, 4]].map(&p) #=> [1, 3]
* [[1, 2], [3, 4]].map(&l) # ArgumentError: wrong number of arguments (given 1, expected 2)
*
* The only exception is dynamic method definition: even if defined by