mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[DOC] Tweaks for Array#length
This commit is contained in:
parent
99620b98ba
commit
9f47f0eb3c
Notes:
git
2024-10-02 17:19:47 +00:00
1 changed files with 8 additions and 2 deletions
10
array.c
10
array.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue