fixed things flagged in code review

This commit is contained in:
Shawn Erickson
2016-03-07 11:07:22 -08:00
parent 68ff64357c
commit 371c0f6e68
4 changed files with 11 additions and 9 deletions

View File

@@ -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)
}