diff options
author | Kenichi Kamiya <[email protected]> | 2021-03-22 02:15:46 +0900 |
---|---|---|
committer | Marc-André Lafortune <[email protected]> | 2021-03-22 08:16:19 -0400 |
commit | 5b272a645322c2ffe0f73c523d64832678d0de5f (patch) | |
tree | 8676467feefb3f75dcb39f863ee12de200760fe5 /hash.c | |
parent | ad0fa53203720d52cff2d5c8b293fea5c6889dbb (diff) |
[Doc] Fix a typo around Hash#compare_by_identity
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4303
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6690,8 +6690,8 @@ env_update(VALUE env, VALUE hash) * ==== User-Defined \Hash Keys * * To be useable as a \Hash key, objects must implement the methods <code>hash</code> and <code>eql?</code>. - * Note: this requirement does not apply if the \Hash uses #compare_by_id since comparison will then rely on - * the keys' object id instead of <code>hash</code> and <code>eql?</code>. + * Note: this requirement does not apply if the \Hash uses #compare_by_identity since comparison will then + * rely on the keys' object id instead of <code>hash</code> and <code>eql?</code>. * * \Object defines basic implementation for <code>hash</code> and <code>eq?</code> that makes each object * a distinct key. Typically, user-defined classes will want to override these methods to provide meaningful |