summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2024-11-08 16:22:35 -0600
committerPeter Zhu <[email protected]>2024-11-11 09:43:30 -0500
commit3ac5c053279c9a567fe1fa336840fd86f730c5e5 (patch)
treed11117334d257cfcaa78616620051e401b6d0bc6 /array.c
parenta1148d4aada8b3bb2e1c370766baad11c28edf23 (diff)
[DOC] Tweaks for Array#|
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12038
Diffstat (limited to 'array.c')
-rw-r--r--array.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/array.c b/array.c
index 571aec61d0..bdf37f5b9d 100644
--- a/array.c
+++ b/array.c
@@ -5750,9 +5750,9 @@ rb_ary_union_hash(VALUE hash, VALUE ary2)
/*
* call-seq:
- * array | other_array -> new_array
+ * self | other_array -> new_array
*
- * Returns the union of +array+ and +Array+ +other_array+;
+ * Returns the union of +self+ and +other_array+;
* duplicates are removed; order is preserved;
* items are compared using <tt>eql?</tt>:
*
@@ -5760,7 +5760,7 @@ rb_ary_union_hash(VALUE hash, VALUE ary2)
* [0, 1, 1] | [2, 2, 3] # => [0, 1, 2, 3]
* [0, 1, 2] | [3, 2, 1, 0] # => [0, 1, 2, 3]
*
- * Related: Array#union.
+ * Related: see {Methods for Combining}[rdoc-ref:Array@Methods+for+Combining].
*/
static VALUE