@@ -31,20 +31,20 @@ open class NSArray : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCo
31
31
_storage. reserveCapacity ( 0 )
32
32
}
33
33
34
- public required init ( objects: UnsafePointer < AnyObject > ? , count cnt : Int ) {
35
- precondition ( cnt >= 0 )
36
- precondition ( cnt == 0 || objects != nil )
34
+ public required init ( objects: UnsafePointer < AnyObject > ? , count: Int ) {
35
+ precondition ( count >= 0 )
36
+ precondition ( count == 0 || objects != nil )
37
37
38
- _storage. reserveCapacity ( cnt )
39
- for idx in 0 ..< cnt {
38
+ _storage. reserveCapacity ( count )
39
+ for idx in 0 ..< count {
40
40
_storage. append ( objects![ idx] )
41
41
}
42
42
}
43
43
44
- public convenience init ( objects: UnsafePointer < AnyObject > , count cnt : Int ) {
44
+ public convenience init ( objects: UnsafePointer < AnyObject > , count: Int ) {
45
45
self . init ( )
46
- _storage. reserveCapacity ( cnt )
47
- for idx in 0 ..< cnt {
46
+ _storage. reserveCapacity ( count )
47
+ for idx in 0 ..< count {
48
48
_storage. append ( objects [ idx] )
49
49
}
50
50
}
@@ -754,13 +754,13 @@ open class NSMutableArray : NSArray {
754
754
}
755
755
}
756
756
757
- public required init ( objects: UnsafePointer < AnyObject > ? , count cnt : Int ) {
758
- precondition ( cnt >= 0 )
759
- precondition ( cnt == 0 || objects != nil )
757
+ public required init ( objects: UnsafePointer < AnyObject > ? , count: Int ) {
758
+ precondition ( count >= 0 )
759
+ precondition ( count == 0 || objects != nil )
760
760
761
761
super. init ( )
762
- _storage. reserveCapacity ( cnt )
763
- for idx in 0 ..< cnt {
762
+ _storage. reserveCapacity ( count )
763
+ for idx in 0 ..< count {
764
764
_storage. append ( objects![ idx] )
765
765
}
766
766
}
0 commit comments