summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-14 19:08:57 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-14 19:08:57 +0000
commit1b179216a945abba11a9906e12b8068481c12566 (patch)
treed7708003132be0a7413b2f11097e3f73954ad7f7 /proc.c
parent3a3581d586d24a300cc3dd2ee16d3c858a97a95f (diff)
* 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
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
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