mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user