diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-05-12 18:01:16 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-05-12 18:01:16 -0700 |
commit | de29a022acb93691dfc50db852cb04f763565072 (patch) | |
tree | bf727ca515dafb6d79e140d666c516396aafb72a /hash.c | |
parent | 9cfa811b0f209d714f89fe0de6778c71f77556c7 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 *++ |