mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update _PrefixSequence.next() for removal of ++ operator
This commit is contained in:
@@ -270,7 +270,7 @@ internal class _PrefixSequence<Base : GeneratorType> : SequenceType, GeneratorTy
|
||||
|
||||
internal func next() -> Base.Element? {
|
||||
if taken >= maxLength { return nil }
|
||||
++taken
|
||||
taken += 1
|
||||
|
||||
if let next = generator.next() {
|
||||
return next
|
||||
|
||||
Reference in New Issue
Block a user