diff --git a/hash.c b/hash.c index 27111685dc..fdecb1edad 100644 --- a/hash.c +++ b/hash.c @@ -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 hash and eql?. - * 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 hash and eql?. + * 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 hash and eql?. * * \Object defines basic implementation for hash and eq? that makes each object * a distinct key. Typically, user-defined classes will want to override these methods to provide meaningful