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

ruby-changes:21340

From: drbrain <ko1@a...>
Date: Tue, 4 Oct 2011 07:44:13 +0900 (JST)
Subject: [ruby-changes:21340] drbrain:r33389 (trunk): * array.c (rb_ary_initalize): Make Array.new description match

drbrain	2011-10-04 07:43:59 +0900 (Tue, 04 Oct 2011)

  New Revision: 33389

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

  Log:
    * array.c (rb_ary_initalize):  Make Array.new description match
      call-seq.  Patch by Henry Maddocks.  [Ruby 1.9 - Bug #5344]

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 33388)
+++ array.c	(revision 33389)
@@ -507,9 +507,9 @@
  *     Array.new(size) {|index| block }
  *
  *  Returns a new array. In the first form, the new array is
- *  empty. In the second it is created with _size_ copies of _obj_
- *  (that is, _size_ references to the same
- *  _obj_). The third form creates a copy of the array
+ *  empty, or it is created with _size_ copies of _obj_ (that is,
+ *  _size_ references to the same _obj_).
+ *  The second form creates a copy of the array
  *  passed as a parameter (the array is generated by calling
  *  to_ary  on the parameter). In the last form, an array
  *  of the given size is created. Each element in this array is
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33388)
+++ ChangeLog	(revision 33389)
@@ -1,3 +1,8 @@
+Tue Oct  4 07:43:18 2011  Eric Hodel  <drbrain@s...>
+
+	* array.c (rb_ary_initalize):  Make Array.new description match
+	  call-seq.  Patch by Henry Maddocks.  [Ruby 1.9 - Bug #5344]
+
 Tue Oct  4 07:35:23 2011  Eric Hodel  <drbrain@s...>
 
 	* array.c (rb_ary_initialize):  Add output for examples.  Patch by

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

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