mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: rename RangeReplaceableCollectionType.extend() to appendContentsOf()
rdar://21972324 Swift SVN r30607
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user