mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
replaced single-line ++/-- with +=/-=
This commit is contained in:
@@ -202,7 +202,7 @@ NSStringAPIs.test("init(UTF8String:)") {
|
||||
var i = 0
|
||||
for b in s.utf8 {
|
||||
up[i] = b
|
||||
i++
|
||||
i += 1
|
||||
}
|
||||
up[i] = 0
|
||||
expectOptionalEqual(s, String(UTF8String: UnsafePointer(up)))
|
||||
|
||||
Reference in New Issue
Block a user