[DOC] Correct Array#compact! description

This commit is contained in:
Jonathan Lim 2022-12-11 17:24:01 +00:00 committed by GitHub
parent e0a4205eb7
commit e1ca089b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2022-12-11 17:24:20 +00:00
Merged: https://github.com/ruby/ruby/pull/6904

Merged-By: XrXr

View File

@ -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.