mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Unify usage of shorthand
Use plus-equals shorthand instead of longhand throughout index.swift
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user