[DOC] Link to Array#eql? from Array#hash
This commit is contained in:
parent
301a7b1e1d
commit
ca886cd253
2
array.c
2
array.c
@ -5191,7 +5191,7 @@ rb_ary_hash_values(long len, const VALUE *elements)
|
|||||||
*
|
*
|
||||||
* Returns the integer hash value for +self+.
|
* Returns the integer hash value for +self+.
|
||||||
*
|
*
|
||||||
* Two arrays with the same content will have the same hash code (and will compare using eql?):
|
* Two arrays with the same content will have the same hash code (and will compare using #eql?):
|
||||||
*
|
*
|
||||||
* [0, 1, 2].hash == [0, 1, 2].hash # => true
|
* [0, 1, 2].hash == [0, 1, 2].hash # => true
|
||||||
* [0, 1, 2].hash == [0, 1, 3].hash # => false
|
* [0, 1, 2].hash == [0, 1, 3].hash # => false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user