stdlib: rename Array.appendContents(of:) to Array.append(contentsOf:)

This commit is contained in:
Dmitri Gribenko
2016-03-04 14:39:14 -08:00
parent cf4bafe9e3
commit 43a5d4cf55
2 changed files with 5 additions and 5 deletions

View File

@@ -694,11 +694,11 @@ extension ${Self} : _ArrayProtocol {
/// Append the elements of `newElements` to `self`.
///
/// - Complexity: O(*length of result*).
public mutating func appendContents<
public mutating func append<
S : Sequence
where
S.Iterator.Element == Element
>(of newElements: S) {
>(contentsOf newElements: S) {
self += newElements
}
@@ -707,11 +707,11 @@ extension ${Self} : _ArrayProtocol {
/// Append the elements of `newElements` to `self`.
///
/// - Complexity: O(*length of result*).
public mutating func appendContents<
public mutating func append<
C : Collection
where
C.Iterator.Element == Element
>(of newElements: C) {
>(contentsOf newElements: C) {
self += newElements
}