@@ -230,11 +230,11 @@ if True:
230
230
/// are `nil`.
231
231
///
232
232
/// if let firstElement = oddNumbers.first, lastElement = oddNumbers.last {
233
- /// print(firstElement, lastElement, separator: ", ", terminator: "\n" )
233
+ /// print(firstElement, lastElement, separator: ", ")
234
234
/// }
235
235
/// // Prints "1, 15"
236
236
///
237
- /// print(emptyDoubles.first, emptyDoubles.last, separator: ", ", terminator: "\n" )
237
+ /// print(emptyDoubles.first, emptyDoubles.last, separator: ", ")
238
238
/// // Prints "nil, nil"
239
239
///
240
240
/// You can access individual array elements through a subscript. The first
@@ -243,7 +243,7 @@ if True:
243
243
/// the count of the array. Using a negative number or an index equal to or
244
244
/// greater than `count` triggers a runtime error. For example:
245
245
///
246
- /// print(oddNumbers[0], oddNumbers[3], separator: ", ", terminator: "\n" )
246
+ /// print(oddNumbers[0], oddNumbers[3], separator: ", ")
247
247
/// // Prints "1, 7"
248
248
///
249
249
/// print(emptyDoubles[0])
@@ -621,10 +621,10 @@ ${SubscriptDocComment}
621
621
public subscript( index: Int) - > Element {
622
622
get {
623
623
// This call may be hoisted or eliminated by the optimizer. If
624
- // there is an inout violation, this value may be stale so needs to be
624
+ // there is an inout violation, this value may be stale so needs to be
625
625
// checked again below.
626
626
let wasNativeTypeChecked = _hoistableIsNativeTypeChecked ( )
627
-
627
+
628
628
// Make sure the index is in range and wasNativeTypeChecked is
629
629
// still valid.
630
630
let token = _checkSubscript (
@@ -636,7 +636,7 @@ ${SubscriptDocComment}
636
636
}
637
637
mutableAddressWithPinnedNativeOwner {
638
638
_makeMutableAndUniqueOrPinned ( ) // makes the array native, too
639
- _checkSubscript_native ( index)
639
+ _checkSubscript_native ( index)
640
640
return ( _getElementAddress ( index) , Builtin . tryPin ( _getOwner_native ( ) ) )
641
641
}
642
642
}
@@ -752,7 +752,7 @@ ${SubscriptDocComment}
752
752
// We are hiding the access to '_buffer.owner' behind
753
753
// _getOwner() to help the compiler hoist uniqueness checks in
754
754
// the case of class or Objective-C existential typed array
755
- // elements.
755
+ // elements.
756
756
return _getOwnerWithSemanticLabel_native ( )
757
757
}
758
758
#endif
@@ -992,12 +992,12 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
992
992
/// func cacheImagesWithNames(names: [String]) {
993
993
/// // custom image loading and caching
994
994
/// }
995
- ///
995
+ ///
996
996
/// let namedHues: [String: Int] = ["Vermillion": 18, "Magenta": 302,
997
997
/// "Gold": 50, "Cerise": 320]
998
998
/// let colorNames = Array(namedHues.keys)
999
999
/// cacheImagesWithNames(colorNames)
1000
- ///
1000
+ ///
1001
1001
/// print(colorNames)
1002
1002
/// // Prints "["Gold", "Cerise", "Magenta", "Vermillion"]"
1003
1003
///
@@ -1084,15 +1084,15 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
1084
1084
internal static func _ado ptStorage(
1085
1085
_ storage: AnyObject, count: Int
1086
1086
) - > ( Array, UnsafeMutablePointer < Element > ) {
1087
-
1087
+
1088
1088
_sanityCheck (
1089
1089
storage is _ContiguousArrayStorage < Element > , " Invalid array storage type " )
1090
-
1090
+
1091
1091
let innerBuffer = _ContiguousArrayBuffer < Element > (
1092
1092
count: count,
1093
1093
storage: unsafeDowncast (
1094
1094
storage, to: _ContiguousArrayStorage< Element> . self ) )
1095
-
1095
+
1096
1096
return (
1097
1097
Array ( _Buffer ( innerBuffer, shiftedToStartIndex: 0 ) ) ,
1098
1098
innerBuffer. firstElementAddress)
0 commit comments