mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change .None to nil
This commit is contained in:
@@ -28,9 +28,7 @@ public struct RangeGenerator<
|
||||
/// Advance to the next element and return it, or `nil` if no next
|
||||
/// element exists.
|
||||
public mutating func next() -> Element? {
|
||||
if startIndex == endIndex {
|
||||
return .None
|
||||
}
|
||||
if startIndex == endIndex { return nil }
|
||||
let element = startIndex
|
||||
startIndex._successorInPlace()
|
||||
return element
|
||||
|
||||
Reference in New Issue
Block a user