Skip to content

Commit 9b5f8bc

Browse files
authored
fix hash docstring from == to isequal (#59747)
as stated this is not correct. ``` julia> hash(0.0) 0x23238f9f15dcda9e julia> hash(-0.0) 0x3969366b98f98664 ```
1 parent 38bed82 commit 9b5f8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/hashing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const HASH_SECRET = (
1111
"""
1212
hash(x[, h::UInt])::UInt
1313
14-
Compute an integer hash code such that `isequal(x,y)` implies `hash(x)==hash(y)`. The
14+
Compute an integer hash code such that `isequal(x,y)` implies `isequal(hash(x), hash(y))`. The
1515
optional second argument `h` is another hash code to be mixed with the result.
1616
1717
New types should implement the 2-argument form, typically by calling the 2-argument `hash`

0 commit comments

Comments
 (0)