зеркало из https://github.com/github/ruby.git
[DOC] FIx typo in description of Hash#hash (regardless or/of order)
This commit is contained in:
Родитель
ef4dab6983
Коммит
3887b45f47
2
hash.c
2
hash.c
|
@ -3772,7 +3772,7 @@ hash_i(VALUE key, VALUE val, VALUE arg)
|
|||
* Returns the Integer hash-code for the hash.
|
||||
*
|
||||
* Two \Hash objects have the same hash-code if their content is the same
|
||||
* (regardless or order):
|
||||
* (regardless of order):
|
||||
* h1 = {foo: 0, bar: 1, baz: 2}
|
||||
* h2 = {baz: 2, bar: 1, foo: 0}
|
||||
* h2.hash == h1.hash # => true
|
||||
|
|
Загрузка…
Ссылка в новой задаче