Skip to content

Commit 13a6385

Browse files
committed
Fix indentation, move params to new line
1 parent e69b71f commit 13a6385

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

benchmark/single-source/IndexPathTest.swift

+6-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func indexPath(_ size: Int, middle: Int) -> IndexPath {
6161
// Subscript Mutations
6262

6363
@inline(__always)
64-
func subscriptMutation(n: Int,
64+
func subscriptMutation(
65+
n: Int,
6566
mutations: Int,
6667
mutate: (inout IndexPath, Int) -> ()) {
6768
for _ in 0..<n {
@@ -79,20 +80,21 @@ func subscriptMutation(n: Int,
7980
public func run_IndexPathSubscriptMutation(_ n: Int, _ count: Int) {
8081
subscriptMutation(n: n, mutations: count, mutate: { ip, i in
8182
ip[i % 4] += 1
82-
})
83+
})
8384
}
8485

8586
@inline(never)
8687
public func run_IndexPathSubscriptRangeMutation(_ n: Int, _ count: Int) {
8788
subscriptMutation(n: count, mutations: count, mutate: { ip, i in
8889
ip[0..<i] += [i]
89-
})
90+
})
9091
}
9192

9293
// Max, Min
9394

9495
@inline(__always)
95-
func maxMin(n: Int,
96+
func maxMin(
97+
n: Int,
9698
creator: () -> IndexPath,
9799
maxMinFunc: (inout IndexPath) -> Int?) {
98100
for _ in 0..<n {

0 commit comments

Comments
 (0)