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

ruby-changes:29022

From: eregon <ko1@a...>
Date: Wed, 5 Jun 2013 01:16:56 +0900 (JST)
Subject: [ruby-changes:29022] eregon:r41074 (trunk): * array.c (Array#+): fix documentation example.

eregon	2013-06-05 01:16:36 +0900 (Wed, 05 Jun 2013)

  New Revision: 41074

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

  Log:
    * array.c (Array#+): fix documentation example.
      Patch by Logan Serman. [Fixes GH-324]

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 41073)
+++ array.c	(revision 41074)
@@ -3357,8 +3357,9 @@ rb_ary_fill(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/array.c#L3357
  *
  *     [ 1, 2, 3 ] + [ 4, 5 ]    #=> [ 1, 2, 3, 4, 5 ]
  *     a = [ "a", "b", "c" ]
- *     a + [ "d", "e", "f" ]
- *     a                         #=> [ "a", "b", "c", "d", "e", "f" ]
+ *     c = a + [ "d", "e", "f" ]
+ *     c                         #=> [ "a", "b", "c", "d", "e", "f" ]
+ *     a                         #=> [ "a", "b", "c" ]
  *
  *  See also Array#concat.
  */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41073)
+++ ChangeLog	(revision 41074)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun  5 01:16:09 2013  Benoit Daloze  <eregontp@g...>
+
+	* array.c (Array#+): fix documentation example.
+	  Patch by Logan Serman. [Fixes GH-324]
+
 Wed Jun  5 00:21:54 2013  Ayumu AIZAWA  <ayumu.aizawa@g...>
 
 	* lib/irb/lc/ja/help-message: update help messages.

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

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