Skip to content

Commit 3741af3

Browse files
committed
fix compiler warning
1 parent cd5f3ec commit 3741af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Prometheus/MetricTypes/Histogram.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public struct Buckets: ExpressibleByArrayLiteral {
4141
assert(count >= 1, "Bucket.linear needs a count larger than 1")
4242
var arr = [Double]()
4343
var s = start
44-
for x in 0..<count {
44+
for _ in 0..<count {
4545
arr.append(s)
4646
s += width
4747
}
@@ -60,7 +60,7 @@ public struct Buckets: ExpressibleByArrayLiteral {
6060
assert(factor > 1, "Bucket.exponential needs a factor larger than 1")
6161
var arr = [Double]()
6262
var s = start
63-
for x in 0..<count {
63+
for _ in 0..<count {
6464
arr.append(s)
6565
s *= factor
6666
}

0 commit comments

Comments
 (0)