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:
parent
bec492c77e
commit
11bcc0d9d6
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>
1 changed files with 1 additions and 1 deletions
2
array.c
2
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 <tt>ele == obj</tt>;
|
||||
|
|
Loading…
Reference in a new issue