Skip to content

Commit

Permalink
[DOC] Tweaks for Array#reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar authored and peterzhu2118 committed Oct 9, 2024
1 parent 6dac070 commit 377d022
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions array.c
Original file line number Diff line number Diff line change
Expand Up @@ -3140,14 +3140,13 @@ rb_ary_reverse_bang(VALUE ary)

/*
* call-seq:
* array.reverse -> new_array
* reverse -> new_array
*
* Returns a new +Array+ with the elements of +self+ in reverse order:
* Returns a new array containing the elements of +self+ in reverse order:
*
* a = ['foo', 'bar', 'two']
* a1 = a.reverse
* a1 # => ["two", "bar", "foo"]
* [0, 1, 2].reverse # => [2, 1, 0]
*
* Related: see {Methods for Combining}[rdoc-ref:Array@Methods+for+Combining].
*/

static VALUE
Expand Down Expand Up @@ -8662,6 +8661,7 @@ rb_ary_deconstruct(VALUE ary)
* - #difference: Returns an array containing all elements of +self+ that are not found
* in any of the given arrays..
* - #product: Returns or yields all combinations of elements from +self+ and given arrays.
* - #reverse: Returns an array containing all elements of +self+ in reverse order.
*
* === Methods for Iterating
*
Expand Down

0 comments on commit 377d022

Please sign in to comment.