Skip to content

Commit 967ac96

Browse files
Update _PrefixSequence.next() for removal of ++ operator
1 parent 27fad7d commit 967ac96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Sequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ internal class _PrefixSequence<Base : GeneratorType> : SequenceType, GeneratorTy
270270

271271
internal func next() -> Base.Element? {
272272
if taken >= maxLength { return nil }
273-
++taken
273+
taken += 1
274274

275275
if let next = generator.next() {
276276
return next

0 commit comments

Comments
 (0)