Skip to content

Commit 3d40513

Browse files
committed
Fix formatting
1 parent 7178406 commit 3d40513

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

benchmark/single-source/IndexPathTest.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ func indexPath(_ size: Int,
6363
// Subscript Mutations
6464

6565
@inline(__always)
66-
func subscriptMutation(n: Int,
67-
mutations: Int,
68-
mutate: (inout IndexPath, Int) -> ()) {
66+
func subscriptMutation(n: Int,
67+
mutations: Int,
68+
mutate: (inout IndexPath, Int) -> ()) {
6969
for _ in 0..<n {
70-
var ip = indexPath(size)
70+
var ip = indexPath(size)
71+
72+
for i in 0..<mutations {
73+
mutate(&ip, i)
74+
}
7175

72-
for i in 0..<mutations {
73-
mutate(&ip, i)
74-
}
75-
7676
blackHole(ip)
77-
}
77+
}
7878
}
7979

8080
@inline(never)

0 commit comments

Comments
 (0)