Unify usage of shorthand

Use plus-equals shorthand instead of longhand throughout index.swift
This commit is contained in:
Nicholas Maccharoli
2016-02-21 02:46:11 +09:00
parent 76b2577236
commit 7be032b146

View File

@@ -219,7 +219,7 @@ extension ForwardIndexType {
var i : Distance = 0
while i != n {
p._successorInPlace()
i = i + 1
i += 1
}
return p
}
@@ -235,7 +235,7 @@ extension ForwardIndexType {
while i != n {
if p == limit { break }
p._successorInPlace()
i = i + 1
i += 1
}
return p
}