File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1671,8 +1671,8 @@ extension _ArrayBufferProtocol where Index == Int {
1671
1671
@inline ( never)
1672
1672
internal mutating func _arrayOutOfPlaceReplace< C : Collection > (
1673
1673
_ bounds: Range < Int > ,
1674
- _ newValues: C ,
1675
- _ insertCount: Int
1674
+ with newValues: C ,
1675
+ count in sertCount: Int
1676
1676
) where C. Iterator. Element == Element {
1677
1677
1678
1678
let growth = insertCount - bounds. count
@@ -1758,13 +1758,13 @@ extension ${Self} {
1758
1758
let insertCount = numericCast ( newElements. count) as Int
1759
1759
let growth = insertCount - eraseCount
1760
1760
1761
- if self . _buffer. requestUniqueMutableBackingBuffer (
1761
+ if _buffer. requestUniqueMutableBackingBuffer (
1762
1762
minimumCapacity: oldCount + growth) != nil {
1763
1763
1764
- self . _buffer. replace (
1764
+ _buffer. replace (
1765
1765
subRange: subrange, with: insertCount, elementsOf: newElements)
1766
1766
} else {
1767
- _buffer. _arrayOutOfPlaceReplace ( subrange, newElements, insertCount)
1767
+ _buffer. _arrayOutOfPlaceReplace ( subrange, with : newElements, count : insertCount)
1768
1768
}
1769
1769
}
1770
1770
}
You can’t perform that action at this time.
0 commit comments