mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename SequenceType.generate() to SequenceType.iterator()
This commit is contained in:
committed by
Max Moiseev
parent
2cf172160c
commit
1c0047829a
@@ -92,7 +92,7 @@ class NonContiguousNSString : NSString {
|
||||
|
||||
convenience init(_ scalars: [UInt32]) {
|
||||
var encoded: [UInt16] = []
|
||||
var g = scalars.generate()
|
||||
var g = scalars.iterator()
|
||||
let output: (UInt16) -> Void = { encoded.append($0) }
|
||||
let hadError =
|
||||
transcode(UTF32.self, UTF16.self, g, output, stopOnError: true)
|
||||
|
||||
Reference in New Issue
Block a user