diff options
author | Jonathan Lim <snowblink@gmail.com> | 2022-12-11 17:24:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-11 12:24:01 -0500 |
commit | e1ca089b5dddd30c4ac8de9c7ec9e52948768117 (patch) | |
tree | f4fc391dca78a8bdbf14be532ea530d58c39f4c3 | |
parent | e0a4205eb785f266fdf08f409c2f112f5dfcb229 (diff) | |
download | ruby-e1ca089b5dddd30c4ac8de9c7ec9e52948768117.tar.gz |
[DOC] Correct Array#compact! description
-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. |