summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Westerman <sam@sampersand.me>2025-11-01 00:18:01 +0000
committerGitHub <noreply@github.com>2025-11-01 09:18:01 +0900
commit17a7b4e03170599c942d2a7f1bbac6247aa3bd56 (patch)
treebf6855e65d45bda06849d6d89cd49654bddb7dfd
parent8db30094fce210cd193b571d7c4b7e5702ed1ca9 (diff)
[DOC] Fix typo in `Hash#compare_by_identity` docs
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 603cab76db..97a303c4d5 100644
--- a/hash.c
+++ b/hash.c
@@ -4649,7 +4649,7 @@ rb_hash_compact_bang(VALUE hash)
* returns +self+:
*
* By default, two keys are considered to be the same key
- * if and only if they are _equal_ objects (per method #==):
+ * if and only if they are _equal_ objects (per method #eql?):
*
* h = {}
* h['x'] = 0