[DOC] Correct Array#compact! description
This commit is contained in:
parent
e0a4205eb7
commit
e1ca089b5d
Notes:
git
2022-12-11 17:24:20 +00:00
Merged: https://github.com/ruby/ruby/pull/6904 Merged-By: XrXr
2
array.c
2
array.c
@ -8732,7 +8732,7 @@ rb_ary_deconstruct(VALUE ary)
|
||||
*
|
||||
* - #pop: Removes and returns the last element.
|
||||
* - #shift: Removes and returns the first element.
|
||||
* - #compact!: Removes all non-+nil+ elements.
|
||||
* - #compact!: Removes all +nil+ elements.
|
||||
* - #delete: Removes elements equal to a given object.
|
||||
* - #delete_at: Removes the element at a given offset.
|
||||
* - #delete_if: Removes elements specified by a given block.
|
||||
|
Loading…
x
Reference in New Issue
Block a user