ruby-changes:11360
From: nobu <ko1@a...>
Date: Mon, 16 Mar 2009 15:33:15 +0900 (JST)
Subject: [ruby-changes:11360] Ruby:r22979 (ruby_1_8): * eval.c (proc_arity): fixed rdoc.
nobu 2009-03-16 15:33:04 +0900 (Mon, 16 Mar 2009) New Revision: 22979 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22979 Log: * eval.c (proc_arity): fixed rdoc. [ruby-core:18708] Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/eval.c Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 22978) +++ ruby_1_8/ChangeLog (revision 22979) @@ -1,3 +1,7 @@ +Mon Mar 16 15:33:10 2009 Nobuyoshi Nakada <nobu@r...> + + * eval.c (proc_arity): fixed rdoc. [ruby-core:18708] + Sun Mar 15 12:50:23 2009 Nobuyoshi Nakada <nobu@r...> * gc.c (run_final): frees zombies only. [ruby-dev:38171] Index: ruby_1_8/eval.c =================================================================== --- ruby_1_8/eval.c (revision 22978) +++ ruby_1_8/eval.c (revision 22979) @@ -9025,7 +9025,7 @@ * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/