mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fixed things flagged in code review
This commit is contained in:
@@ -98,7 +98,7 @@ extension BidirectionalCollection {
|
||||
extension BidirectionalCollection where Index : Strideable {
|
||||
@warn_unused_result
|
||||
public func previous(i: Index) -> Index {
|
||||
_failEarlyRangeCheck(i, bounds:startIndex..<endIndex)
|
||||
_failEarlyRangeCheck(i, bounds: startIndex..<endIndex)
|
||||
|
||||
return i.advanced(by: -1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user