[DOC] Tweaks for Array#delete_at
This commit is contained in:
parent
3aeb9c75bd
commit
c7e1862116
Notes:
git
2024-09-11 12:36:40 +00:00
5
array.c
5
array.c
@ -4128,9 +4128,9 @@ rb_ary_delete_at(VALUE ary, long pos)
|
||||
|
||||
/*
|
||||
* 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].
|
||||
*
|
||||
* 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(-4) # => nil
|
||||
*
|
||||
* Related: see {Methods for Deleting}[rdoc-ref:Array@Methods+for+Deleting].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user