[DOC] Tweaks for Array#length

This commit is contained in:
BurdetteLamar 2024-10-02 11:12:09 -05:00 committed by Peter Zhu
parent 99620b98ba
commit 9f47f0eb3c
Notes: git 2024-10-02 17:19:47 +00:00

10
array.c
View File

@ -2725,9 +2725,15 @@ rb_ary_reverse_each(VALUE ary)
/*
* call-seq:
* array.length -> an_integer
* length -> integer
* size -> integer
*
* Returns the count of elements in +self+.
* Returns the count of elements in +self+:
*
* [0, 1, 2].length # => 3
* [].length # => 0
*
* Related: see {Methods for Querying}[rdoc-ref:Array@Methods+for+Querying].
*/
static VALUE