[DOC] Tweaks for Hash#size

This commit is contained in:
BurdetteLamar 2025-02-27 10:52:21 -06:00 committed by Peter Zhu
parent ce66eea167
commit 5de02d6487
Notes: git 2025-03-04 14:22:37 +00:00

4
hash.c
View File

@ -3007,13 +3007,13 @@ rb_hash_replace(VALUE hash, VALUE hash2)
/*
* call-seq:
* length -> integer
* size -> integer
*
* 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