diff --git a/proc.c b/proc.c index 59b0bd3f84..d316f042be 100644 --- a/proc.c +++ b/proc.c @@ -115,8 +115,11 @@ proc_clone(VALUE self) * Such procs are typically generated by lambda. * * lambda {}.lambda? => true + * lambda {|a,b| [a,b]}.call(1,2,3) => ArgumentError * * proc {}.lambda? => false + * proc {|a,b| [a,b]}.call(1,2,3) => [1,2] + * * Proc.new {}.lambda? => false * * def m() end @@ -124,10 +127,11 @@ proc_clone(VALUE self) * * def n(&b) b.lambda? end * n {} => false - * n(&lambda {}) => true - * n(&method(:m)) => true * n(&proc {}) => false * n(&Proc.new {}) => false + * n(&lambda {}) => true + * n(&method(:m)) => true + * n(&method(:m)).to_proc => true * */