File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ protocol _ArrayProtocol
44
44
/// - Complexity: O(`self.count`).
45
45
mutating func reserveCapacity( minimumCapacity: Int )
46
46
47
- /// Operator form of `appendContentsOf `.
47
+ /// Operator form of `append(contentsOf:) `.
48
48
func += <
49
49
S : Sequence where S. Iterator. Element == Iterator . Element
50
50
> ( lhs: inout Self , rhs: S )
Original file line number Diff line number Diff line change @@ -694,11 +694,11 @@ extension ${Self} : _ArrayProtocol {
694
694
/// Append the elements of `newElements` to `self`.
695
695
///
696
696
/// - Complexity: O(*length of result*).
697
- public mutating func appendContents <
697
+ public mutating func append <
698
698
S : Sequence
699
699
where
700
700
S. Iterator. Element == Element
701
- > ( of newElements: S) {
701
+ > ( contentsOf newElements: S) {
702
702
self += newElements
703
703
}
704
704
@@ -707,11 +707,11 @@ extension ${Self} : _ArrayProtocol {
707
707
/// Append the elements of `newElements` to `self`.
708
708
///
709
709
/// - Complexity: O(*length of result*).
710
- public mutating func appendContents <
710
+ public mutating func append <
711
711
C : Collection
712
712
where
713
713
C. Iterator. Element == Element
714
- > ( of newElements: C) {
714
+ > ( contentsOf newElements: C) {
715
715
self += newElements
716
716
}
717
717
You can’t perform that action at this time.
0 commit comments