Skip to content

Commit ad1a15d

Browse files
committed
Change c-style for loop to for-in loop based on proposal SE-0007
1 parent 54b22f4 commit ad1a15d

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)