From 4a194ca811ed874293a96ea79a76e91921f48ed1 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Sun, 1 Nov 2020 20:39:18 +0000 Subject: [PATCH] remove redundant limit --- Sources/Algorithms/Stride.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(