[DOC] Link to Array#eql? from Array#hash

This commit is contained in:
Peter Zhu 2023-12-25 13:56:15 -05:00
parent 301a7b1e1d
commit ca886cd253

View File

@ -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