Skip to content

Commit 17f6a68

Browse files
[DOC] Tweaks for Hash#rehash
1 parent 8774530 commit 17f6a68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,8 +1988,9 @@ rb_hash_rehash_i(VALUE key, VALUE value, VALUE arg)
19881988
* call-seq:
19891989
* rehash -> self
19901990
*
1991-
* Rebuilds the hash table by recomputing the hash index for each key;
1991+
* Rebuilds the hash table for +self+ by recomputing the hash index for each key;
19921992
* returns <tt>self</tt>.
1993+
* Calling this method ensures that the hash table is valid.
19931994
*
19941995
* The hash table becomes invalid if the hash value of a key
19951996
* has changed after the entry was created.

0 commit comments

Comments
 (0)