mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
improve stdlib hygiene a bit.
Swift SVN r28392
This commit is contained in:
@@ -428,7 +428,7 @@ public struct _StringCore {
|
||||
newSize newSize: Int, newCapacity: Int, minElementWidth: Int
|
||||
) {
|
||||
_sanityCheck(newCapacity >= newSize)
|
||||
var oldCount = count
|
||||
let oldCount = count
|
||||
|
||||
// Allocate storage.
|
||||
let newElementWidth =
|
||||
@@ -436,7 +436,7 @@ public struct _StringCore {
|
||||
? minElementWidth
|
||||
: representableAsASCII() ? 1 : 2
|
||||
|
||||
var newStorage = _StringBuffer(capacity: newCapacity, initialSize: newSize,
|
||||
let newStorage = _StringBuffer(capacity: newCapacity, initialSize: newSize,
|
||||
elementWidth: newElementWidth)
|
||||
|
||||
if hasContiguousStorage {
|
||||
|
||||
Reference in New Issue
Block a user