diff options
author | Jonathan Lim <[email protected]> | 2022-12-11 17:24:01 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-11 12:24:01 -0500 |
commit | e1ca089b5dddd30c4ac8de9c7ec9e52948768117 (patch) | |
tree | f4fc391dca78a8bdbf14be532ea530d58c39f4c3 | |
parent | e0a4205eb785f266fdf08f409c2f112f5dfcb229 (diff) |
[DOC] Correct Array#compact! description
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6904
Merged-By: XrXr
-rw-r--r-- | array.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |