stdlib: Sequence.iterator() => .makeIterator()

This commit is contained in:
Dmitri Gribenko
2016-02-23 13:09:54 -08:00
parent 577bb7431c
commit f0633ce5a9
91 changed files with 347 additions and 345 deletions

View File

@@ -342,7 +342,7 @@ public struct _StringCore {
UnsafeBufferPointer(
start: UnsafeMutablePointer<UTF16.CodeUnit>(_baseAddress),
count: count
).iterator(),
).makeIterator(),
output,
stoppingOnError: true
)
@@ -687,7 +687,7 @@ extension _StringCore : RangeReplaceableCollection {
}
let growth = s.underestimatedCount
var iter = s.iterator()
var iter = s.makeIterator()
if _fastPath(growth > 0) {
let newSize = count + growth