From 1b179216a945abba11a9906e12b8068481c12566 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 14 Mar 2013 19:08:57 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ proc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 14d1f608a9..a72f2d0290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 15 04:08:00 2013 Zachary Scott + + * proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094] + Thu Mar 14 16:59:09 2013 Nobuyoshi Nakada * configure.in (rb_cv_function_name_string): macro for function name 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