RangeReplaceableCollection.insert(_:atIndex:) => .insert(_:at:)

This commit is contained in:
Dmitri Gribenko
2015-11-04 14:28:09 -08:00
committed by Max Moiseev
parent 9a9ff305f1
commit 727f011314
15 changed files with 36 additions and 36 deletions

View File

@@ -722,7 +722,7 @@ extension ${Self} : _ArrayType {
/// - Requires: `i <= count`.
///
/// - Complexity: O(`self.count`).
public mutating func insert(newElement: Element, atIndex i: Int) {
public mutating func insert(newElement: Element, at i: Int) {
_checkIndex(i)
self.replaceSubrange(i..<i, with: CollectionOfOne(newElement))
}