[前][次][番号順一覧][スレッド一覧]

ruby-changes:27706

From: zzak <ko1@a...>
Date: Fri, 15 Mar 2013 04:09:35 +0900 (JST)
Subject: [ruby-changes:27706] zzak:r39758 (trunk): * proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]

zzak	2013-03-15 04:08:57 +0900 (Fri, 15 Mar 2013)

  New Revision: 39758

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39758

  Log:
    * proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]

  Modified files:
    trunk/ChangeLog
    trunk/proc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39757)
+++ ChangeLog	(revision 39758)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Mar 15 04:08:00 2013  Zachary Scott  <zachary@z...>
+
+	* proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]
+
 Thu Mar 14 16:59:09 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (rb_cv_function_name_string): macro for function name
Index: proc.c
===================================================================
--- proc.c	(revision 39757)
+++ proc.c	(revision 39758)
@@ -649,7 +649,7 @@ rb_proc_call_with_block(VALUE self, int https://github.com/ruby/ruby/blob/trunk/proc.c#L649
  *
  *     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]