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:
Andrew Trick
2016-07-18 23:37:45 -07:00
committed by GitHub
parent d82483bcee
commit 73106dd7c3
34 changed files with 94 additions and 88 deletions

View File

@@ -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)