diff --git a/hash.c b/hash.c index 0d5f1554a1..17d71c6cfd 100644 --- a/hash.c +++ b/hash.c @@ -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