File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ extension Dictionary {
550
550
// and watchOS.
551
551
self = Dictionary (
552
552
_immutableCocoaDictionary:
553
- unsafeBitCast ( _cocoaDictionary. copy ( withZone : nil ) , to: _NSDictionary. self) )
553
+ unsafeBitCast ( _cocoaDictionary. copy ( with : nil ) , to: _NSDictionary. self) )
554
554
}
555
555
}
556
556
@@ -762,7 +762,7 @@ extension Set {
762
762
// and watchOS.
763
763
self = Set (
764
764
_immutableCocoaSet:
765
- unsafeBitCast ( _cocoaSet. copy ( withZone : nil ) , to: _NSSet. self) )
765
+ unsafeBitCast ( _cocoaSet. copy ( with : nil ) , to: _NSSet. self) )
766
766
}
767
767
}
768
768
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ if True:
158
158
/// -------------------------
159
159
///
160
160
/// An `NSArray` can be implicitly or explicitly converted to any
161
- /// bridged `Array<Element>`. This conversion calls `copy(withZone :)`
161
+ /// bridged `Array<Element>`. This conversion calls `copy(with :)`
162
162
/// on the `NSArray`, to ensure it won't be modified, and stores the
163
163
/// result in the `Array`. Type-checking, to ensure the `NSArray`'s
164
164
/// elements match or can be bridged to `Element`, is deferred until the
Original file line number Diff line number Diff line change @@ -2524,7 +2524,7 @@ final internal class _Native${Self}StorageOwner<${TypeParametersDecl}>
2524
2524
2525
2525
@objc(copyWithZone:)
2526
2526
@warn_unused_result
2527
- internal func copy(withZone zone: _SwiftNSZone) -> AnyObject {
2527
+ internal func copy(with zone: _SwiftNSZone) -> AnyObject {
2528
2528
// Instances of this class should be visible outside of standard library as
2529
2529
// having `NSSet` type, which is immutable.
2530
2530
return self
@@ -2561,7 +2561,7 @@ final internal class _Native${Self}StorageOwner<${TypeParametersDecl}>
2561
2561
2562
2562
@objc(copyWithZone:)
2563
2563
@warn_unused_result
2564
- internal func copy(withZone zone: _SwiftNSZone) -> AnyObject {
2564
+ internal func copy(with zone: _SwiftNSZone) -> AnyObject {
2565
2565
// Instances of this class should be visible outside of standard library as
2566
2566
// having `NSDictionary` type, which is immutable.
2567
2567
return self
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public typealias _SwiftNSZone = OpaquePointer
50
50
@objc
51
51
public protocol _NSCopying : _ShadowProtocol {
52
52
@objc ( copyWithZone: )
53
- func copy( withZone zone: _SwiftNSZone ) -> AnyObject
53
+ func copy( with zone: _SwiftNSZone ) -> AnyObject
54
54
}
55
55
56
56
/// A shadow for the "core operations" of NSArray.
@@ -101,7 +101,7 @@ public protocol _NSDictionaryCore :
101
101
// We also override the following methods for efficiency.
102
102
103
103
@objc ( copyWithZone: )
104
- func copy( withZone zone: _SwiftNSZone ) -> AnyObject
104
+ func copy( with zone: _SwiftNSZone ) -> AnyObject
105
105
106
106
func getObjects( objects: UnsafeMutablePointer < AnyObject > ,
107
107
andKeys keys: UnsafeMutablePointer < AnyObject > )
@@ -150,7 +150,7 @@ public protocol _NSSetCore :
150
150
// We also override the following methods for efficiency.
151
151
152
152
@objc ( copyWithZone: )
153
- func copy( withZone zone: _SwiftNSZone ) -> AnyObject
153
+ func copy( with zone: _SwiftNSZone ) -> AnyObject
154
154
155
155
@objc ( countByEnumeratingWithState: objects: count: )
156
156
func countByEnumeratingWith(
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ extension _SwiftNativeNSArrayWithContiguousStorage : _NSArrayCore {
112
112
}
113
113
114
114
@objc ( copyWithZone: )
115
- internal func copy( withZone _: _SwiftNSZone ) -> AnyObject {
115
+ internal func copy( with _: _SwiftNSZone ) -> AnyObject {
116
116
return self
117
117
}
118
118
}
You can’t perform that action at this time.
0 commit comments