diff --git a/Sources/Algorithms/Stride.swift b/Sources/Algorithms/Stride.swift index e93ed86..d8fc05e 100644 --- a/Sources/Algorithms/Stride.swift +++ b/Sources/Algorithms/Stride.swift @@ -84,7 +84,7 @@ extension Stride: Collection { public func index(after i: Index) -> Index { precondition(i.base < base.endIndex, "Advancing past end index") - return index(i, offsetBy: 1, limitedBy: endIndex) ?? endIndex + return index(i, offsetBy: 1) } public func index(