summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2025-02-21 16:04:47 -0600
committerPeter Zhu <[email protected]>2025-02-24 19:27:31 -0500
commit0615df2a844280b5d0a988e10b2c8d0af7e27b89 ()
tree0cb7a4247de9ea004e8d8d62ba6cba2313ba4e71
parent19f7961e46b2c5817b8eb27510c890d623ac14b3 (diff)
[DOC] Tweaks for Hash#hash
Notes: Merged: https://.com/ruby/ruby/pull/12793
-rw-r--r--hash.c7
1 files changed, 5 insertions, 2 deletions
@@ -3894,14 +3894,17 @@ hash_i(VALUE key, VALUE val, VALUE arg)
* call-seq:
* hash -> an_integer
*
- * Returns the Integer hash-code for the hash.
*
- * Two +Hash+ objects have the same hash-code if their content is the same
* (regardless of order):
* h1 = {foo: 0, bar: 1, baz: 2}
* h2 = {baz: 2, bar: 1, foo: 0}
* h2.hash == h1.hash # => true
* h2.eql? h1 # => true
*/
static VALUE