[DOC] Tweaks to Array#+ (#11302)

This commit is contained in:
Burdette Lamar 2024-08-07 14:59:01 -05:00 committed by GitHub
parent 53f3036bf9
commit 2a31410ebe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-08-07 19:59:21 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>

View File

@ -4900,15 +4900,15 @@ rb_ary_fill(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
* array + other_array -> new_array
* self + other_array -> new_array
*
* Returns a new +Array+ containing all elements of +array+
* Returns a new array containing all elements of +self+
* followed by all elements of +other_array+:
*
* a = [0, 1] + [2, 3]
* a # => [0, 1, 2, 3]
*
* Related: #concat.
* Related: Array#concat, Array#*.
*/
VALUE