Fix max, min, minmax documentation (#3131)

They only need that all objects implement <=>,
but the documentation said it needs Comparable.
This commit is contained in:
Masataka Pocke Kuwabara 2020-05-27 15:48:46 +09:00 committed by GitHub
parent 752041ca11
commit a3f498e44c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2020-05-27 15:49:10 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
2 changed files with 5 additions and 5 deletions

View file

@ -4932,7 +4932,7 @@ rb_ary_union_multi(int argc, VALUE *argv, VALUE ary)
* ary.max(n) {|a, b| block} -> array
*
* Returns the object in _ary_ with the maximum value. The
* first form assumes all objects implement Comparable;
* first form assumes all objects implement <code><=></code>;
* the second uses the block to return <em>a <=> b</em>.
*
* ary = %w(albatross dog horse)
@ -4985,7 +4985,7 @@ rb_ary_max(int argc, VALUE *argv, VALUE ary)
* ary.min(n) {| a,b | block } -> array
*
* Returns the object in _ary_ with the minimum value. The
* first form assumes all objects implement Comparable;
* first form assumes all objects implement <code><=></code>;
* the second uses the block to return <em>a <=> b</em>.
*
* ary = %w(albatross dog horse)