Fix return value name in docs for Array#union

Throughout the docs, `new_ary` is used to indicate a new array, whereas `ary` refers to the receiver.
This commit is contained in:
Stefan Schüßler 2019-02-18 12:44:01 +01:00 committed by GitHub
parent bef0c0a367
commit e19e5d2409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: Nobuyoshi Nakada 2019-09-15 02:04:51 +09:00
Merge branch patch-5 of https://github.com/sos4nt/ruby into trunk

[Fix GH-2084]

View File

@ -4683,7 +4683,7 @@ rb_ary_or(VALUE ary1, VALUE ary2)
/*
* call-seq:
* ary.union(other_ary1, other_ary2, ...) -> ary
* ary.union(other_ary1, other_ary2, ...) -> new_ary
*
* Set Union --- Returns a new array by joining <code>other_ary</code>s with +self+,
* excluding any duplicates and preserving the order from the given arrays.