mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
This commit is contained in:
@@ -96,8 +96,8 @@ public struct EnumeratedIterator<
|
||||
///
|
||||
/// - Requires: No preceding call to `self.next()` has returned `nil`.
|
||||
public mutating func next() -> Element? {
|
||||
guard let b = _base.next() else { return .None }
|
||||
return .Some((offset: _count++, element: b))
|
||||
guard let b = _base.next() else { return nil }
|
||||
return (offset: _count++, element: b)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user