Skip to content

Commit e69b71f

Browse files
committed
Update per style guildelines
1 parent 3d40513 commit e69b71f

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

benchmark/single-source/IndexPathTest.swift

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- IndexPathTest.swift -------------------------------------------===//
1+
//===--- IndexPathTest.swift ----------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -46,15 +46,13 @@ public let IndexPathTest = [
4646
]
4747

4848
@inline(__always)
49-
func indexPath(_ size: Int,
50-
reversed: Bool = false) -> IndexPath {
49+
func indexPath(_ size: Int, reversed: Bool = false) -> IndexPath {
5150
let indexes = Array(0..<size)
5251
return IndexPath(indexes: reversed ? indexes.reversed() : indexes)
5352
}
5453

5554
@inline(__always)
56-
func indexPath(_ size: Int,
57-
middle: Int) -> IndexPath {
55+
func indexPath(_ size: Int, middle: Int) -> IndexPath {
5856
var indexes = Array(0..<size)
5957
indexes.insert(middle, at: (indexes.count - 1) / 2)
6058
return IndexPath(indexes: indexes)
@@ -79,18 +77,14 @@ func subscriptMutation(n: Int,
7977

8078
@inline(never)
8179
public func run_IndexPathSubscriptMutation(_ n: Int, _ count: Int) {
82-
subscriptMutation(n: n,
83-
mutations: count,
84-
mutate: { ip, i in
80+
subscriptMutation(n: n, mutations: count, mutate: { ip, i in
8581
ip[i % 4] += 1
8682
})
8783
}
8884

8985
@inline(never)
9086
public func run_IndexPathSubscriptRangeMutation(_ n: Int, _ count: Int) {
91-
subscriptMutation(n: count,
92-
mutations: count,
93-
mutate: { ip, i in
87+
subscriptMutation(n: count, mutations: count, mutate: { ip, i in
9488
ip[0..<i] += [i]
9589
})
9690
}

0 commit comments

Comments
 (0)