Skip to content

Commit

Permalink
[DOC] Link to Array#eql? from Array#hash
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Dec 25, 2023
1 parent 301a7b1 commit ca886cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array.c
Expand Up @@ -5191,7 +5191,7 @@ rb_ary_hash_values(long len, const VALUE *elements)
*
* 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, 3].hash # => false
Expand Down

0 comments on commit ca886cd

Please sign in to comment.