mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-27 04:34:21 +00:00
remove redundant limit
This commit is contained in:
1 file changed
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user