Change _ArrayBuffer.replace(subRange:) to replaceSubrange to match RangeReplaceableCollection

This commit is contained in:
Ben Cohen
2016-10-26 09:19:50 -07:00
parent f0d8ca83ad
commit 35d2392d7d
4 changed files with 12 additions and 12 deletions

View File

@@ -72,8 +72,8 @@ internal protocol _ArrayBufferProtocol
///
/// - Precondition: This buffer is backed by a uniquely-referenced
/// `_ContiguousArrayBuffer`.
mutating func replace<C>(
subRange: Range<Int>,
mutating func replaceSubrange<C>(
_ subRange: Range<Int>,
with newCount: Int,
elementsOf newValues: C
) where C : Collection, C.Iterator.Element == Element
@@ -132,8 +132,8 @@ extension _ArrayBufferProtocol where Index == Int {
return firstElementAddress
}
internal mutating func replace<C>(
subRange: Range<Int>,
internal mutating func replaceSubrange<C>(
_ subRange: Range<Int>,
with newCount: Int,
elementsOf newValues: C
) where C : Collection, C.Iterator.Element == Element {