improve stdlib hygiene a bit.

Swift SVN r28392
This commit is contained in:
Chris Lattner
2015-05-10 02:55:18 +00:00
parent 1968b85a03
commit c1df892d47
44 changed files with 135 additions and 138 deletions

View File

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