[DOC] Tweaks for Array#delete_at

This commit is contained in:
BurdetteLamar 2024-09-11 07:07:08 -05:00 committed by Peter Zhu
parent 3aeb9c75bd
commit c7e1862116
Notes: git 2024-09-11 12:36:40 +00:00

View File

@ -4128,9 +4128,9 @@ rb_ary_delete_at(VALUE ary, long pos)
/* /*
* call-seq: * call-seq:
* delete_at(index) -> deleted_object or nil * delete_at(index) -> removed_object or nil
* *
* Deletes the element of +self+ at the given +index+, which must be an * Removes the element of +self+ at the given +index+, which must be an
* {integer-convertible object}[rdoc-ref:implicit_conversion.rdoc@Integer-Convertible+Objects]. * {integer-convertible object}[rdoc-ref:implicit_conversion.rdoc@Integer-Convertible+Objects].
* *
* When +index+ is non-negative, deletes the element at offset +index+: * When +index+ is non-negative, deletes the element at offset +index+:
@ -4151,6 +4151,7 @@ rb_ary_delete_at(VALUE ary, long pos)
* a.delete_at(3) # => nil * a.delete_at(3) # => nil
* a.delete_at(-4) # => nil * a.delete_at(-4) # => nil
* *
* Related: see {Methods for Deleting}[rdoc-ref:Array@Methods+for+Deleting].
*/ */
static VALUE static VALUE