diff options
author | Florian Heinle <florian.heinle@xbav.de> | 2020-01-30 12:45:21 +0100 |
---|---|---|
committer | Aaron Patterson <tenderlove@github.com> | 2020-01-30 12:35:15 -0800 |
commit | 39a1959d289ecba5e61431deaef239123c3f0fcc (patch) | |
tree | 85fcdac9e96c927c28940969912a45aa7df818ed | |
parent | 53adb53c9aea5da98ed3e470983b2cbfe367cb7d (diff) | |
download | ruby-39a1959d289ecba5e61431deaef239123c3f0fcc.tar.gz |
Fix wrong return value in proc documentation.
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |