From 1b179216a945abba11a9906e12b8068481c12566 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 14 Mar 2013 19:08:57 +0000 Subject: * proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index c86cb1c3ac..fe2280f84d 100644 --- a/proc.c +++ b/proc.c @@ -649,7 +649,7 @@ rb_proc_call_with_block(VALUE self, int argc, VALUE *argv, VALUE pass_procval) * * proc { |x = 0| }.arity #=> 0 * lambda { |a = 0| }.arity #=> -1 - * proc { |x=0, y| }.arity #=> 0 + * proc { |x=0, y| }.arity #=> 1 * lambda { |x=0, y| }.arity #=> -2 * proc { |x=0, y=0| }.arity #=> 0 * lambda { |x=0, y=0| }.arity #=> -1 -- cgit v1.2.3