ruby-changes:65619
From: Kenichi <ko1@a...>
Date: Mon, 22 Mar 2021 21:16:34 +0900 (JST)
Subject: [ruby-changes:65619] 5b272a6453 (master): [Doc] Fix a typo around Hash#compare_by_identity
https://git.ruby-lang.org/ruby.git/commit/?id=5b272a6453 From 5b272a645322c2ffe0f73c523d64832678d0de5f Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya <kachick1@g...> Date: Mon, 22 Mar 2021 02:15:46 +0900 Subject: [Doc] Fix a typo around Hash#compare_by_identity --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hash.c b/hash.c index 2711168..fdecb1e 100644 --- a/hash.c +++ b/hash.c @@ -6690,8 +6690,8 @@ env_update(VALUE env, VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L6690 * ==== 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/