Skip to content

Commit 4abcd1d

Browse files
committed
stdlib: update syntax for @Availability
The iPhoneOS SDK was not updated with the associated syntax change in the language. This cleans up the deprecation warnings in the iPhoneOS stdlib build. NFC.
1 parent 33c1541 commit 4abcd1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@_exported import PassKit
22
import Foundation
33

4-
@available(iOS, introduced=6.0)
4+
@available(iOS, introduced: 6.0)
55
extension PKPassKitErrorCode : _BridgedNSError {
66
public static var _nsErrorDomain: String { return PKPassKitErrorDomain }
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@_exported import WatchConnectivity
22
import Foundation
33

4-
@available(iOS, introduced=9.0)
4+
@available(iOS, introduced: 9.0)
55
extension WCErrorCode : _BridgedNSError {
66
public static var _nsErrorDomain: String { return WCErrorDomain }
77
}

stdlib/public/SDK/WatchKit/WatchKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extension WatchKitErrorCode : _BridgedNSError {
1818
public static var _nsErrorDomain: String { return WatchKitErrorDomain }
1919
}
2020

21-
@available(iOS, introduced=8.2)
21+
@available(iOS, introduced: 8.2)
2222
extension WKInterfaceController {
2323
// Swift convenience type (class) method for
2424
// reloadRootControllersWithNames:contexts: that takes an array of tuples

0 commit comments

Comments
 (0)