* 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
This commit is contained in:
parent
3a3581d586
commit
1b179216a9
@ -1,3 +1,7 @@
|
|||||||
|
Fri Mar 15 04:08:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]
|
||||||
|
|
||||||
Thu Mar 14 16:59:09 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Mar 14 16:59:09 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (rb_cv_function_name_string): macro for function name
|
* configure.in (rb_cv_function_name_string): macro for function name
|
||||||
|
2
proc.c
2
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
|
* proc { |x = 0| }.arity #=> 0
|
||||||
* lambda { |a = 0| }.arity #=> -1
|
* lambda { |a = 0| }.arity #=> -1
|
||||||
* proc { |x=0, y| }.arity #=> 0
|
* proc { |x=0, y| }.arity #=> 1
|
||||||
* lambda { |x=0, y| }.arity #=> -2
|
* lambda { |x=0, y| }.arity #=> -2
|
||||||
* proc { |x=0, y=0| }.arity #=> 0
|
* proc { |x=0, y=0| }.arity #=> 0
|
||||||
* lambda { |x=0, y=0| }.arity #=> -1
|
* lambda { |x=0, y=0| }.arity #=> -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user