stdlib: rename RangeReplaceableCollectionType.extend() to appendContentsOf()

rdar://21972324

Swift SVN r30607
This commit is contained in:
Dmitri Hrybenko
2015-07-25 00:36:37 +00:00
parent 1a61bab17c
commit d97ac3e64c
22 changed files with 64 additions and 62 deletions

View File

@@ -44,7 +44,7 @@ func sliceConcurrentAppendThread(tid: ThreadID) {
if tid == .Master {
// Get a fresh buffer.
sharedString = ""
sharedString.extend("abc")
sharedString.appendContentsOf("abc")
sharedString.reserveCapacity(16)
expectLE(16, sharedString.capacityInBytes)
}
@@ -58,9 +58,9 @@ func sliceConcurrentAppendThread(tid: ThreadID) {
// Append to the private string.
if tid == .Master {
privateString.extend("def")
privateString.appendContentsOf("def")
} else {
privateString.extend("ghi")
privateString.appendContentsOf("ghi")
}
barrier()