aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Lim <snowblink@gmail.com>2022-12-11 17:24:01 +0000
committerGitHub <noreply@github.com>2022-12-11 12:24:01 -0500
commite1ca089b5dddd30c4ac8de9c7ec9e52948768117 (patch)
treef4fc391dca78a8bdbf14be532ea530d58c39f4c3
parente0a4205eb785f266fdf08f409c2f112f5dfcb229 (diff)
downloadruby-e1ca089b5dddd30c4ac8de9c7ec9e52948768117.tar.gz
[DOC] Correct Array#compact! description
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index cba1ed376a..ae032fb127 100644
--- a/array.c
+++ b/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.