Skip to content

Commit 7be67b5

Browse files
committed
Merge pull request #721 from jasonnoahchoi/prespecialized
Change c-style for loop to for-in loop based on proposal SE-0007
2 parents c35d9bd + ad1a15d commit 7be67b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Prespecialized.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ struct _Prespecialize {
2929
a[0] = a[j]
3030
}
3131

32-
for var i1 = 0; i1 < a.count; i1 += 1 {
33-
for var i2 = 0; i2 < a.count; i2 += 1 {
32+
for i1 in 0..<a.count {
33+
for i2 in 0..<a.count {
3434
a[i1] = a[i2]
3535
}
3636
}

0 commit comments

Comments
 (0)