Skip to content

Commit

Permalink
[DOC] Tweaks for Array#|
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar authored and peterzhu2118 committed Nov 11, 2024
1 parent a1148d4 commit 3ac5c05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions array.c
Original file line number Diff line number Diff line change
Expand Up @@ -5750,17 +5750,17 @@ 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>:
*
* [0, 1] | [2, 3] # => [0, 1, 2, 3]
* [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
Expand Down

0 comments on commit 3ac5c05

Please sign in to comment.