Skip to content

Commit 9fea249

Browse files
author
Lance Parker
committed
Nate's documentation
1 parent 557dff6 commit 9fea249

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

stdlib/public/core/Array.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,12 @@ extension Array: Hashable where Element: Hashable {
16161616
public var hashValue: Int {
16171617
return _hashValue(for: self)
16181618
}
1619-
1619+
1620+
/// Hashes the essential components of this value by feeding them into the
1621+
/// given hasher.
1622+
///
1623+
/// - Parameter hasher: The hasher to use when combining the components
1624+
/// of this instance.
16201625
@inlinable // FIXME(sil-serialize-all)
16211626
public func hash(into hasher: inout Hasher) {
16221627
hasher.combine(count) // discriminator

stdlib/public/core/ArraySlice.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,13 @@ extension ArraySlice: Hashable where Element: Hashable {
14101410
public var hashValue: Int {
14111411
return _hashValue(for: self)
14121412
}
1413-
1413+
1414+
/// Hashes the essential components of this value by feeding them into the
1415+
/// given hasher.
1416+
///
1417+
/// - Parameter hasher: The hasher to use when combining the components
1418+
/// of this instance.
1419+
@inlinable // FIXME(sil-ser
14141420
@inlinable // FIXME(sil-serialize-all)
14151421
public func hash(into hasher: inout Hasher) {
14161422
hasher.combine(count) // discriminator

stdlib/public/core/ContiguousArray.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,13 @@ extension ContiguousArray: Hashable where Element: Hashable {
13171317
public var hashValue: Int {
13181318
return _hashValue(for: self)
13191319
}
1320-
1320+
1321+
/// Hashes the essential components of this value by feeding them into the
1322+
/// given hasher.
1323+
///
1324+
/// - Parameter hasher: The hasher to use when combining the components
1325+
/// of this instance.
1326+
@inlinable // FIXME(sil-ser
13211327
@inlinable // FIXME(sil-serialize-all)
13221328
public func hash(into hasher: inout Hasher) {
13231329
hasher.combine(count) // discriminator

0 commit comments

Comments
 (0)