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

ruby-changes:42081

From: mame <ko1@a...>
Date: Thu, 17 Mar 2016 21:52:52 +0900 (JST)
Subject: [ruby-changes:42081] mame:r54155 (trunk): * array.c, enum.c: make rdoc format consistent.

mame	2016-03-17 21:52:47 +0900 (Thu, 17 Mar 2016)

  New Revision: 54155

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

  Log:
    * array.c, enum.c: make rdoc format consistent.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/enum.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54154)
+++ ChangeLog	(revision 54155)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Mar 17 21:52:09 2016  Yusuke Endoh  <mame@r...>
+
+	* array.c, enum.c: make rdoc format consistent.
+
 Thu Mar 17 21:47:57 2016  Yusuke Endoh  <mame@r...>
 
 	* NEWS: add Array#max, #min, and the optimization.  [Feature #12172]
Index: enum.c
===================================================================
--- enum.c	(revision 54154)
+++ enum.c	(revision 54155)
@@ -1543,11 +1543,11 @@ min_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg https://github.com/ruby/ruby/blob/trunk/enum.c#L1543
 /*
  *  call-seq:
  *     enum.min                     -> obj
- *     enum.min {| a,b | block }    -> obj
+ *     enum.min { |a, b| block }    -> obj
  *     enum.min(n)                  -> array
- *     enum.min(n) {| a,b | block } -> array
+ *     enum.min(n) { |a, b| block } -> array
  *
- *  Returns the object in <i>enum</i> with the minimum value. The
+ *  Returns the object in _enum_ with the minimum value. The
  *  first form assumes all objects implement <code>Comparable</code>;
  *  the second uses the block to return <em>a <=> b</em>.
  *
@@ -1635,10 +1635,10 @@ max_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg https://github.com/ruby/ruby/blob/trunk/enum.c#L1635
 
 /*
  *  call-seq:
- *     enum.max                   -> obj
- *     enum.max { |a, b| block }  -> obj
- *     enum.max(n)                -> obj
- *     enum.max(n) {|a,b| block } -> obj
+ *     enum.max                     -> obj
+ *     enum.max { |a, b| block }    -> obj
+ *     enum.max(n)                  -> array
+ *     enum.max(n) { |a, b| block } -> array
  *
  *  Returns the object in _enum_ with the maximum value. The
  *  first form assumes all objects implement <code>Comparable</code>;
Index: array.c
===================================================================
--- array.c	(revision 54154)
+++ array.c	(revision 54155)
@@ -4180,10 +4180,10 @@ rb_ary_or(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L4180
 
 /*
  *  call-seq:
- *     ary.max                   -> obj
- *     ary.max { |a, b| block }  -> obj
- *     ary.max(n)                -> array
- *     ary.max(n) {|a,b| block } -> array
+ *     ary.max                     -> obj
+ *     ary.max { |a, b| block }    -> obj
+ *     ary.max(n)                  -> array
+ *     ary.max(n) { |a, b| block } -> array
  *
  *  Returns the object in _ary_ with the maximum value. The
  *  first form assumes all objects implement <code>Comparable</code>;

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

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