Skip to content

Commit 1a0891c

Browse files
committed
Merge pull request #2646 from rintaro/array-doc-appendcontentsof
[stdlib] Update documentation for renamed API
2 parents 409132c + ccb5b97 commit 1a0891c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Arrays.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
13061306
/// to an array of integers.
13071307
///
13081308
/// var numbers = [1, 2, 3, 4, 5]
1309-
/// numbers.appendContents(of: 10...15)
1309+
/// numbers.append(contentsOf: 10...15)
13101310
/// print(numbers)
13111311
/// // Prints "[1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15]"
13121312
///
@@ -1340,7 +1340,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
13401340
/// to an array of integers.
13411341
///
13421342
/// var numbers = [1, 2, 3, 4, 5]
1343-
/// numbers.appendContents(of: 10...15)
1343+
/// numbers.append(contentsOf: 10...15)
13441344
/// print(numbers)
13451345
/// // Prints "[1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15]"
13461346
///

0 commit comments

Comments
 (0)