From 11bcc0d9d66de9b749904e82601e6be45c69bda4 Mon Sep 17 00:00:00 2001 From: Vivek Bharath Akupatni Date: Mon, 28 Feb 2022 19:46:22 -0500 Subject: [PATCH] [DOC] Fix documentation for Array#delete Never returns self. --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array.c b/array.c index 1895b232ac..ee3a4f2557 100644 --- a/array.c +++ b/array.c @@ -3829,7 +3829,7 @@ ary_resize_smaller(VALUE ary, long len) * array.delete(obj) -> deleted_object * array.delete(obj) {|nosuch| ... } -> deleted_object or block_return * - * Removes zero or more elements from +self+; returns +self+. + * Removes zero or more elements from +self+. * * When no block is given, * removes from +self+ each element +ele+ such that ele == obj;