summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-05-12 18:01:16 -0700
committerJeremy Evans <code@jeremyevans.net>2020-05-12 18:01:16 -0700
commitde29a022acb93691dfc50db852cb04f763565072 (patch)
treebf727ca515dafb6d79e140d666c516396aafb72a /hash.c
parent9cfa811b0f209d714f89fe0de6778c71f77556c7 (diff)
Document that #hash is not called for certain core classes [ci skip]
Fixes [Bug #16850]
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index e75a431c09..b7d320f7c2 100644
--- a/hash.c
+++ b/hash.c
@@ -315,6 +315,9 @@ objid_hash(VALUE obj)
* implementations of Ruby. If you need a stable identifier across Ruby
* invocations and implementations you will need to generate one with a custom
* method.
+ *
+ * Certain core classes such as Integer use built-in hash calculations and
+ * do not call the #hash method when used as a hash key.
*--
* \private
*++