Skip to content

Commit e95860c

Browse files
authored
update hash doc string: widen not required any more (#55867)
Implementing `widen` isn't a requirement any more, since #26022.
1 parent d60837f commit e95860c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

base/hashing.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ optional second argument `h` is another hash code to be mixed with the result.
1111
New types should implement the 2-argument form, typically by calling the 2-argument `hash`
1212
method recursively in order to mix hashes of the contents with each other (and with `h`).
1313
Typically, any type that implements `hash` should also implement its own [`==`](@ref) (hence
14-
[`isequal`](@ref)) to guarantee the property mentioned above. Types supporting subtraction
15-
(operator `-`) should also implement [`widen`](@ref), which is required to hash
16-
values inside heterogeneous arrays.
14+
[`isequal`](@ref)) to guarantee the property mentioned above.
1715
1816
The hash value may change when a new Julia process is started.
1917

0 commit comments

Comments
 (0)