diff options
| author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2025-03-07 08:38:51 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-07 09:38:51 -0500 |
| commit | 17f6a689629ec3507a79fc156833f329dc641bed (patch) | |
| tree | 045fe1edac7b43c928a2ed10497817fd3f931caa | |
| parent | 8774530ce10bbee5b483b4e7283cc263b246125d (diff) | |
[DOC] Tweaks for Hash#rehash
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12875
Merged-By: peterzhu2118 <peter@peterzhu.ca>
| -rw-r--r-- | hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1988,8 +1988,9 @@ rb_hash_rehash_i(VALUE key, VALUE value, VALUE arg) * call-seq: * rehash -> self * - * Rebuilds the hash table by recomputing the hash index for each key; + * Rebuilds the hash table for +self+ by recomputing the hash index for each key; * returns <tt>self</tt>. + * Calling this method ensures that the hash table is valid. * * The hash table becomes invalid if the hash value of a key * has changed after the entry was created. |
