File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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 {
16711671 @inline ( never)
16721672 internal mutating func _arrayOutOfPlaceReplace< C : Collection > (
16731673 _ bounds: Range < Int > ,
1674- _ newValues: C ,
1675- _ insertCount: Int
1674+ with newValues: C ,
1675+ count in sertCount: Int
16761676 ) where C. Iterator. Element == Element {
16771677
16781678 let growth = insertCount - bounds. count
@@ -1758,13 +1758,13 @@ extension ${Self} {
17581758 let insertCount = numericCast ( newElements. count) as Int
17591759 let growth = insertCount - eraseCount
17601760
1761- if self . _buffer. requestUniqueMutableBackingBuffer (
1761+ if _buffer. requestUniqueMutableBackingBuffer (
17621762 minimumCapacity: oldCount + growth) != nil {
17631763
1764- self . _buffer. replace (
1764+ _buffer. replace (
17651765 subRange: subrange, with: insertCount, elementsOf: newElements)
17661766 } else {
1767- _buffer. _arrayOutOfPlaceReplace ( subrange, newElements, insertCount)
1767+ _buffer. _arrayOutOfPlaceReplace ( subrange, with : newElements, count : insertCount)
17681768 }
17691769 }
17701770}
You can’t perform that action at this time.
0 commit comments