зеркало из https://github.com/github/ruby.git
* array.c, enum.c: make rdoc format consistent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f8e2964065
Коммит
b3a65c883a
|
@ -1,3 +1,7 @@
|
|||
Thu Mar 17 21:52:09 2016 Yusuke Endoh <mame@ruby-lang.org>
|
||||
|
||||
* array.c, enum.c: make rdoc format consistent.
|
||||
|
||||
Thu Mar 17 21:47:57 2016 Yusuke Endoh <mame@ruby-lang.org>
|
||||
|
||||
* NEWS: add Array#max, #min, and the optimization. [Feature #12172]
|
||||
|
|
8
array.c
8
array.c
|
@ -4180,10 +4180,10 @@ rb_ary_or(VALUE ary1, VALUE ary2)
|
|||
|
||||
/*
|
||||
* 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>;
|
||||
|
|
14
enum.c
14
enum.c
|
@ -1543,11 +1543,11 @@ min_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, args))
|
|||
/*
|
||||
* 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, args))
|
|||
|
||||
/*
|
||||
* 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>;
|
||||
|
|
Загрузка…
Ссылка в новой задаче