summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdette Lamar <[email protected]>2024-08-28 16:17:21 -0500
committerGitHub <[email protected]>2024-08-28 17:17:21 -0400
commitdba9601e0f9c42698cb6ca804d604bcdacbd60b7 (patch)
tree862bd98ead1e77390562bfc9898f75c127f1868b
parentd25833b81a70fae6724d5dc4fe6affb9f2c81690 (diff)
[DOC] Array comparing doc (#11486)
Notes
Notes: Merged-By: peterzhu2118 <[email protected]>
-rw-r--r--array.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/array.c b/array.c
index 1e03181b6d..6e8f4b3f71 100644
--- a/array.c
+++ b/array.c
@@ -5194,6 +5194,8 @@ recursive_equal(VALUE ary1, VALUE ary2, int recur)
*
* This method is different from method Array#eql?,
* which compares elements using <tt>Object#eql?</tt>.
+ *
+ * Related: see {Methods for Comparing}[rdoc-ref:Array@Methods+for+Comparing].
*/
static VALUE
@@ -5383,6 +5385,7 @@ recursive_cmp(VALUE ary1, VALUE ary2, int recur)
* [0, 1, 2] <=> [0, 1, 2, 0] # => -1
* [0, 1, 2] <=> [0, 1, 2, 3] # => -1
*
+ * Related: see {Methods for Comparing}[rdoc-ref:Array@Methods+for+Comparing].
*/
VALUE
@@ -8566,7 +8569,7 @@ rb_ary_deconstruct(VALUE ary)
*
* === Methods for Comparing
*
- * - #<=>: Returns -1, 0, or 1 * as +self+ is less than, equal to, or
+ * - #<=>: Returns -1, 0, or 1, as +self+ is less than, equal to, or
* greater than a given object.
* - #==: Returns whether each element in +self+ is <tt>==</tt> to the corresponding element
* in a given object.