Skip to content

Commit 92488c2

Browse files
committed
Rect: correct the representation of Rect.null
Correct a copy-paste error in the definition of `null`.
1 parent 24d8d2e commit 92488c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftWin32/CG/Rect.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ public struct Rect {
6565

6666
/// The null rectangle, representing an invalid value.
6767
public static var null: Rect {
68-
Rect(x: .greatestFiniteMagnitude, y: .greatestFiniteMagnitude,
69-
width: 0.0, height: 0.0)
68+
Rect(x: .infinity, y: .infinity, width: 0.0, height: 0.0)
7069
}
7170

7271
/// The rectangle whose origin and size are both zero.

0 commit comments

Comments
 (0)