We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcd5b92 + 5bb7baa commit 190df8eCopy full SHA for 190df8e
stdlib/public/core/Join.swift
@@ -37,7 +37,7 @@ public struct JoinedIterator<Base : IteratorProtocol> : IteratorProtocol
37
///
38
/// Once `nil` has been returned, all subsequent calls return `nil`.
39
public mutating func next() -> Base.Element.Iterator.Element? {
40
- repeat {
+ while true {
41
switch _state {
42
case .start:
43
if let nextSubSequence = _base.next() {
@@ -75,7 +75,6 @@ public struct JoinedIterator<Base : IteratorProtocol> : IteratorProtocol
75
76
}
77
78
- while true
79
80
81
internal var _base: Base
0 commit comments