Skip to content

Commit 7f1dd3e

Browse files
committed
[Foundation] Fix bizarre indentation issues
1 parent 2ab2431 commit 7f1dd3e

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

stdlib/public/Darwin/Foundation/Calendar.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,13 +901,13 @@ public struct Calendar : Hashable, Equatable, ReferenceConvertible, _MutableBoxi
901901

902902
public func hash(into hasher: inout Hasher) {
903903
// We need to make sure autoupdating calendars have the same hash
904-
if _autoupdating {
904+
if _autoupdating {
905905
hasher.combine(false)
906-
} else {
906+
} else {
907907
hasher.combine(true)
908-
hasher.combine(_handle.map { $0 })
909-
}
910-
}
908+
hasher.combine(_handle.map { $0 })
909+
}
910+
}
911911

912912
// MARK: -
913913
// MARK: Conversion Functions

stdlib/public/Darwin/Foundation/IndexPath.swift

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -663,29 +663,29 @@ public struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableColl
663663
}
664664

665665
public func hash(into hasher: inout Hasher) {
666-
// Note: We compare all indices in ==, so for proper hashing, we must
667-
// also feed them all to the hasher.
668-
//
669-
// To ensure we have unique hash encodings in nested hashing contexts,
670-
// we combine the count of indices as well as the indices themselves.
671-
// (This matches what Array does.)
672-
switch _indexes {
673-
case .empty:
674-
hasher.combine(0)
675-
case let .single(index):
676-
hasher.combine(1)
677-
hasher.combine(index)
678-
case let .pair(first, second):
679-
hasher.combine(2)
680-
hasher.combine(first)
681-
hasher.combine(second)
682-
case let .array(indexes):
683-
hasher.combine(indexes.count)
684-
for index in indexes {
685-
hasher.combine(index)
686-
}
687-
}
688-
}
666+
// Note: We compare all indices in ==, so for proper hashing, we must
667+
// also feed them all to the hasher.
668+
//
669+
// To ensure we have unique hash encodings in nested hashing contexts,
670+
// we combine the count of indices as well as the indices themselves.
671+
// (This matches what Array does.)
672+
switch _indexes {
673+
case .empty:
674+
hasher.combine(0)
675+
case let .single(index):
676+
hasher.combine(1)
677+
hasher.combine(index)
678+
case let .pair(first, second):
679+
hasher.combine(2)
680+
hasher.combine(first)
681+
hasher.combine(second)
682+
case let .array(indexes):
683+
hasher.combine(indexes.count)
684+
for index in indexes {
685+
hasher.combine(index)
686+
}
687+
}
688+
}
689689

690690
// MARK: - Bridging Helpers
691691

0 commit comments

Comments
 (0)