mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename initialize(with:count:) to initialize(to:count:). (#3601)
As proposed in SE-0107: UnsafeRawPointer. "with" is considered a vacuous preposition. "to" implies direction.
This commit is contained in:
@@ -163,7 +163,7 @@ extension _ArrayBufferProtocol where Index == Int {
|
||||
}
|
||||
// Initialize the hole left by sliding the tail forward
|
||||
for j in oldTailIndex..<newTailIndex {
|
||||
(elements + j).initialize(with: newValues[i])
|
||||
(elements + j).initialize(to: newValues[i])
|
||||
newValues.formIndex(after: &i)
|
||||
}
|
||||
_expectEnd(i, newValues)
|
||||
|
||||
Reference in New Issue
Block a user