mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Document that #hash is not called for certain core classes [ci skip]
Fixes [Bug #16850]
This commit is contained in:
parent
9cfa811b0f
commit
de29a022ac
1 changed files with 3 additions and 0 deletions
3
hash.c
3
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
|
||||
*++
|
||||
|
|
Loading…
Add table
Reference in a new issue