1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (proc_arity): fixed rdoc. [ruby-core:18708]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-16 06:33:04 +00:00
parent 3b0bc50873
commit 19d95e8982
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Mar 16 15:33:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (proc_arity): fixed rdoc. [ruby-core:18708]
Sun Mar 15 12:50:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (run_final): frees zombies only. [ruby-dev:38171]

2
eval.c
View file

@ -9025,7 +9025,7 @@ static VALUE method_arity _((VALUE));
* arguments. A <code>proc</code> with no argument declarations
* is the same a block declaring <code>||</code> as its arguments.
*
* Proc.new {}.arity #=> 0
* Proc.new {}.arity #=> -1
* Proc.new {||}.arity #=> 0
* Proc.new {|a|}.arity #=> 1
* Proc.new {|a,b|}.arity #=> 2