Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model

This commit is contained in:
Dmitri Gribenko
2016-04-14 13:45:27 -07:00
1151 changed files with 9048 additions and 8911 deletions

View File

@@ -274,13 +274,13 @@ extension String.UnicodeScalarView : RangeReplaceableCollection {
/// Reserve enough space to store `n` ASCII characters.
///
/// - Complexity: O(`n`).
public mutating func reserveCapacity(n: Int) {
public mutating func reserveCapacity(_ n: Int) {
_core.reserveCapacity(n)
}
/// Append `x` to `self`.
///
/// - Complexity: Amortized O(1).
public mutating func append(x: UnicodeScalar) {
public mutating func append(_ x: UnicodeScalar) {
_core.append(x)
}
/// Append the elements of `newElements` to `self`.
@@ -300,7 +300,7 @@ extension String.UnicodeScalarView : RangeReplaceableCollection {
public mutating func replaceSubrange<
C: Collection where C.Iterator.Element == UnicodeScalar
>(
bounds: Range<Index>, with newElements: C
_ bounds: Range<Index>, with newElements: C
) {
let rawSubRange: Range<Int> =
bounds.lowerBound._position