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

ruby-changes:41896

From: nobu <ko1@a...>
Date: Mon, 29 Feb 2016 16:50:27 +0900 (JST)
Subject: [ruby-changes:41896] nobu:r53970 (trunk): array.c: [DOC] remove trailing comma [ci skip]

nobu	2016-02-29 16:51:15 +0900 (Mon, 29 Feb 2016)

  New Revision: 53970

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53970

  Log:
    array.c: [DOC] remove trailing comma [ci skip]
    
    * array.c (rb_ary_push_m): [DOC] Remove trailing comma from
      Array#push example, as other Array examples doesn't put trailing
      comma.  [Fix GH-1279]

  Modified files:
    trunk/ChangeLog
    trunk/array.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53969)
+++ ChangeLog	(revision 53970)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Feb 29 16:50:20 2016  hanachin  <hanachin@g...>
+
+	* array.c (rb_ary_push_m): [DOC] Remove trailing comma from
+	  Array#push example, as other Array examples doesn't put trailing
+	  comma.  [Fix GH-1279]
+
 Mon Feb 29 16:31:01 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* common.mk, tool/mkconfig.rb: set cross_compiling option from
Index: array.c
===================================================================
--- array.c	(revision 53969)
+++ array.c	(revision 53970)
@@ -935,7 +935,7 @@ rb_ary_cat(VALUE ary, const VALUE *argv, https://github.com/ruby/ruby/blob/trunk/array.c#L935
  *     a = [ "a", "b", "c" ]
  *     a.push("d", "e", "f")
  *             #=> ["a", "b", "c", "d", "e", "f"]
- *     [1, 2, 3,].push(4).push(5)
+ *     [1, 2, 3].push(4).push(5)
  *             #=> [1, 2, 3, 4, 5]
  */
 

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

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