[stdlib] Update documentation for renamed API

appendContents(of:) => append(contentsOf:)
This commit is contained in:
rintaro ishizaki
2016-05-23 12:47:08 +09:00
parent 21413d3f0f
commit ccb5b97cb2

View File

@@ -1306,7 +1306,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
/// to an array of integers.
///
/// var numbers = [1, 2, 3, 4, 5]
/// numbers.appendContents(of: 10...15)
/// numbers.append(contentsOf: 10...15)
/// print(numbers)
/// // Prints "[1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15]"
///
@@ -1340,7 +1340,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
/// to an array of integers.
///
/// var numbers = [1, 2, 3, 4, 5]
/// numbers.appendContents(of: 10...15)
/// numbers.append(contentsOf: 10...15)
/// print(numbers)
/// // Prints "[1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15]"
///