File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public protocol Hashable: Equatable {
109109 ///
110110 /// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
111111 /// conform to `Hashable`, implement the `hash(into:)` requirement instead.
112- /// ( The compiler will provide an implementation for `hashValue` for you.)
112+ /// The compiler provides an implementation for `hashValue` for you.
113113 var hashValue : Int { get }
114114
115115 /// Hashes the essential components of this value by feeding them into the
@@ -120,9 +120,10 @@ public protocol Hashable: Equatable {
120120 /// in your type's `==` operator implementation. Call `hasher.combine(_:)`
121121 /// with each of these components.
122122 ///
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.
123+ /// - Important: In your implemention of `hash(into:)`,
124+ /// don't call `finalize()` on the `hasher` instance provided,
125+ /// or replace it with a different instance.
126+ /// Doing so may become a compile-time error in the future.
126127 ///
127128 /// - Parameter hasher: The hasher to use when combining the components
128129 /// of this instance.
You can’t perform that action at this time.
0 commit comments