mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for Hash#size
This commit is contained in:
parent
ce66eea167
commit
5de02d6487
Notes:
git
2025-03-04 14:22:37 +00:00
1 changed files with 2 additions and 2 deletions
4
hash.c
4
hash.c
|
@ -3007,13 +3007,13 @@ rb_hash_replace(VALUE hash, VALUE hash2)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* length -> integer
|
|
||||||
* size -> integer
|
* size -> integer
|
||||||
*
|
*
|
||||||
* Returns the count of entries in +self+:
|
* Returns the count of entries in +self+:
|
||||||
*
|
*
|
||||||
* {foo: 0, bar: 1, baz: 2}.length # => 3
|
* {foo: 0, bar: 1, baz: 2}.size # => 3
|
||||||
*
|
*
|
||||||
|
* Related: see {Methods for Querying}[rdoc-ref:Hash@Methods+for+Querying].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue