Skip to content

Commit 974cd86

Browse files
committed
Fix mistakes in == implementation for CGPoint, CGSize and CGRect
1 parent bf62043 commit 974cd86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/NSGeometry.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public struct CGPoint {
5353
extension CGPoint: Equatable { }
5454

5555
public func ==(lhs: CGPoint, rhs: CGPoint) -> Bool {
56-
return (lhs.x == rhs.x) && (lhs.y == lhs.y)
56+
return (lhs.x == rhs.x) && (lhs.y == rhs.y)
5757
}
5858

5959
public struct CGSize {
@@ -72,7 +72,7 @@ public struct CGSize {
7272
extension CGSize: Equatable { }
7373

7474
public func ==(lhs: CGSize, rhs: CGSize) -> Bool {
75-
return (lhs.width == rhs.width) && (lhs.height == lhs.height)
75+
return (lhs.width == rhs.width) && (lhs.height == rhs.height)
7676
}
7777

7878
public struct CGRect {
@@ -91,7 +91,7 @@ public struct CGRect {
9191
extension CGRect: Equatable { }
9292

9393
public func ==(lhs: CGRect, rhs: CGRect) -> Bool {
94-
return (lhs.origin == rhs.origin) && (lhs.size == lhs.size)
94+
return (lhs.origin == rhs.origin) && (lhs.size == rhs.size)
9595
}
9696

9797
public typealias NSPoint = CGPoint

0 commit comments

Comments
 (0)