summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2020-05-27 15:48:46 +0900
committerGitHub <noreply@github.com>2020-05-26 23:48:46 -0700
commita3f498e44c767b331ed07e24f1ce7841b515cba0 (patch)
tree76fd46805fbcf08169f93dc3c80f7a2fe2ce6deb /array.c
parent752041ca11c7e08dd14b8efe063df06114a9660f (diff)
Fix max, min, minmax documentation (#3131)
They only need that all objects implement <=>, but the documentation said it needs Comparable.
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index e5de0841aa..0bf5c153b9 100644
--- a/array.c
+++ b/array.c
@@ -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)