Skip to content

Commit 6ce5a96

Browse files
committed
consistency cleanup
1 parent d70e330 commit 6ce5a96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9
1+
5.8

Sources/scale-benchmark/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ import Benchmark
3636
public let addStringBenchmarks = BenchmarkSuite(name: "add string", settings: Iterations(10000)) {
3737
suite in
3838
suite.benchmark("no capacity") {
39-
var x1: String = ""
39+
var x1 = ""
4040
for _ in 1 ... 1000 {
4141
x1 += "hi"
4242
}
4343
}
4444

4545
suite.benchmark("reserved capacity", settings: Iterations(10001)) {
46-
var x2: String = ""
46+
var x2 = ""
4747
x2.reserveCapacity(2000)
4848
for _ in 1 ... 1000 {
4949
x2 += "hi"

0 commit comments

Comments
 (0)