File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ public protocol Hashable: Equatable {
109
109
///
110
110
/// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
111
111
/// conform to `Hashable`, implement the `hash(into:)` requirement instead.
112
+ /// (The compiler will provide an implementation for `hashValue` for you.)
112
113
var hashValue : Int { get }
113
114
114
115
/// Hashes the essential components of this value by feeding them into the
@@ -119,8 +120,9 @@ public protocol Hashable: Equatable {
119
120
/// in your type's `==` operator implementation. Call `hasher.combine(_:)`
120
121
/// with each of these components.
121
122
///
122
- /// - Important: Never call `finalize()` on `hasher`. Doing so may become a
123
- /// compile-time error in the future.
123
+ /// - Important: `hash(into:)` implementations must never call `finalize()` on
124
+ /// the `hasher` instance provided, or replace it with a different
125
+ /// instance. Doing so may become compile-time errors in the future.
124
126
///
125
127
/// - Parameter hasher: The hasher to use when combining the components
126
128
/// of this instance.
You can’t perform that action at this time.
0 commit comments