1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix documentation for Array#delete

Never returns self.
This commit is contained in:
Vivek Bharath Akupatni 2022-02-28 19:46:22 -05:00 committed by GitHub
parent bec492c77e
commit 11bcc0d9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-03-01 09:46:55 +09:00
Merged: https://github.com/ruby/ruby/pull/5605

Merged-By: nobu <nobu@ruby-lang.org>

View file

@ -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 <tt>ele == obj</tt>;