Skip to content

Commit

Permalink
update hash doc string: widen not required any more (#55867)
Browse files Browse the repository at this point in the history
Implementing `widen` isn't a requirement any more, since #26022.

(cherry picked from commit e95860c)
  • Loading branch information
nsajko authored and KristofferC committed Oct 29, 2024
1 parent 6c9897c commit 4c69200
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/hashing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ optional second argument `h` is another hash code to be mixed with the result.
New types should implement the 2-argument form, typically by calling the 2-argument `hash`
method recursively in order to mix hashes of the contents with each other (and with `h`).
Typically, any type that implements `hash` should also implement its own [`==`](@ref) (hence
[`isequal`](@ref)) to guarantee the property mentioned above. Types supporting subtraction
(operator `-`) should also implement [`widen`](@ref), which is required to hash
values inside heterogeneous arrays.
[`isequal`](@ref)) to guarantee the property mentioned above.
The hash value may change when a new Julia process is started.
Expand Down

0 comments on commit 4c69200

Please sign in to comment.