Skip to content

Commit 4a194ca

Browse files
committed
remove redundant limit
1 parent 6df6133 commit 4a194ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Algorithms/Stride.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ extension Stride: Collection {
8484

8585
public func index(after i: Index) -> Index {
8686
precondition(i.base < base.endIndex, "Advancing past end index")
87-
return index(i, offsetBy: 1, limitedBy: endIndex) ?? endIndex
87+
return index(i, offsetBy: 1)
8888
}
8989

9090
public func index(

0 commit comments

Comments
 (0)