mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-27 04:34:21 +00:00
Update Sources/Algorithms/Suffix.swift
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
This commit is contained in:
1 parent
2f8f798d0c
commit
f9a4f79027
1 file changed
-1
@@ -31,7 +31,6 @@ extension BidirectionalCollection {
|
||||
while result != start {
|
||||
let previous = index(before: result)
|
||||
guard try predicate(self[previous]) else { break }
|
||||
|
||||
result = previous
|
||||
}
|
||||
return self[result...]
|
||||
|
||||
Reference in new issue
Block a user