mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[BasicContainers] UniqueArray: Rename remaining replaceSubrange(_:) operation to replace(removing:)
This commit is contained in:
1 file changed
+2
-2
@@ -639,10 +639,10 @@ extension UniqueArray {
|
||||
/// *m* is the count of `newElements`.
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
public mutating func replaceSubrange<
|
||||
public mutating func replace<
|
||||
C: Container<Element> & Collection<Element>
|
||||
>(
|
||||
_ subrange: Range<Int>,
|
||||
removing subrange: Range<Int>,
|
||||
copying newElements: borrowing C
|
||||
) {
|
||||
// FIXME: Avoid moving the subsequent elements twice.
|
||||
|
||||
Reference in new issue
Block a user