Skip to content

Commit 223d73c

Browse files
authored
Merge pull request #58700 from amartini51/hashable_docs_cleanup
Clean up `Hashable` doc changes
2 parents b73b77d + b3fc822 commit 223d73c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stdlib/public/core/Hashable.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)