Skip to content

Commit 2068b5a

Browse files
committed
[stdlib] Fix func signature spacing
- standardizes spacing of an operator(==) func signature in KeyPath.swift
1 parent 538ee30 commit 2068b5a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
7777
}
7878
}
7979

80-
public static func ==(a: AnyKeyPath, b: AnyKeyPath) -> Bool {
80+
public static func == (a: AnyKeyPath, b: AnyKeyPath) -> Bool {
8181
// Fast-path identical objects
8282
if a === b {
8383
return true
@@ -439,9 +439,7 @@ internal struct ComputedPropertyID: Hashable {
439439
internal var value: Int
440440
internal var kind: KeyPathComputedIDKind
441441

442-
internal static func ==(
443-
x: ComputedPropertyID, y: ComputedPropertyID
444-
) -> Bool {
442+
internal static func == (x: ComputedPropertyID, y: ComputedPropertyID) -> Bool {
445443
return x.value == y.value
446444
&& x.kind == y.kind
447445
}
@@ -654,7 +652,7 @@ internal enum KeyPathComponent: Hashable {
654652
/// The keypath wraps a value in an optional.
655653
case optionalWrap
656654

657-
internal static func ==(a: KeyPathComponent, b: KeyPathComponent) -> Bool {
655+
internal static func == (a: KeyPathComponent, b: KeyPathComponent) -> Bool {
658656
switch (a, b) {
659657
case (.struct(offset: let a), .struct(offset: let b)),
660658
(.class (offset: let a), .class (offset: let b)):

0 commit comments

Comments
 (0)