Change .None to nil

This commit is contained in:
Niels Andriesse
2015-12-12 17:45:22 +11:00
parent d30db93977
commit 12b85a1cf8

View File

@@ -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