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

ruby-changes:52854

From: stomar <ko1@a...>
Date: Sun, 14 Oct 2018 04:01:29 +0900 (JST)
Subject: [ruby-changes:52854] stomar:r65066 (trunk): array.c: fix rdoc syntax

stomar	2018-10-14 04:01:22 +0900 (Sun, 14 Oct 2018)

  New Revision: 65066

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

  Log:
    array.c: fix rdoc syntax
    
    * array.c: [DOC] use `<code>other_ary</code>s' instead of `+other_ary+s',
      which is not rendered correctly.

  Modified files:
    trunk/array.c
Index: array.c
===================================================================
--- array.c	(revision 65065)
+++ array.c	(revision 65066)
@@ -3709,7 +3709,7 @@ ary_append(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/array.c#L3709
  *  call-seq:
  *     ary.concat(other_ary1, other_ary2,...)   -> ary
  *
- *  Appends the elements of +other_ary+s to +self+.
+ *  Appends the elements of <code>other_ary</code>s to +self+.
  *
  *     [ "a", "b" ].concat( ["c", "d"])   #=> [ "a", "b", "c", "d" ]
  *     [ "a" ].concat( ["b"], ["c", "d"]) #=> [ "a", "b", "c", "d" ]
@@ -4227,7 +4227,7 @@ rb_ary_diff(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L4227
  *  Array Difference
  *
  *  Returns a new array that is a copy of +self+, removing any items
- *  that also appear in any of the +other_ary+s. The order of +self+ is
+ *  that also appear in any of the <code>other_ary</code>s. The order of +self+ is
  *  preserved.
  *
  *  It compares elements using their #hash and #eql? methods for efficiency.
@@ -4401,7 +4401,7 @@ rb_ary_or(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L4401
  *  call-seq:
  *     ary.union(other_ary1, other_ary2,...)   -> ary
  *
- *  Set Union --- Returns a new array by joining +other_ary+s with +self+,
+ *  Set Union --- Returns a new array by joining <code>other_ary</code>s with +self+,
  *  excluding any duplicates and preserving the order from the given arrays.
  *
  *  It compares elements using their #hash and #eql? methods for efficiency.

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

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