[BasicContainers] UniqueArray: Rename remaining replaceSubrange(_:) operation to replace(removing:)

This commit is contained in:
Karoy Lorentey committed 2026-02-27 18:00:17 -08:00
1 parent bc7b0ff73d
commit 3f6a49ea86
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.