Skip to content

Commit 0d04bb8

Browse files
authored
Merge pull request #8 from ktoso/wip-minor-typos
Fix typos in doc comments
2 parents 68175a0 + dbcfd45 commit 0d04bb8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Sources/Prometheus/MetricTypes/Counter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class PromCounter<NumType: Numeric, Labels: MetricLabels>: PromMetric, Pr
3131
///
3232
/// - Parameters:
3333
/// - name: Name of the Counter
34-
/// - help: Helpt text of the Counter
34+
/// - help: Help text of the Counter
3535
/// - initialValue: Initial value to set the counter to
3636
/// - p: Prometheus instance that created this counter
3737
internal init(_ name: String, _ help: String? = nil, _ initialValue: NumType = 0, _ p: PrometheusClient) {
@@ -46,7 +46,7 @@ public class PromCounter<NumType: Numeric, Labels: MetricLabels>: PromMetric, Pr
4646
/// Gets the metric string for this counter
4747
///
4848
/// - Returns:
49-
/// Newline seperated Prometheus formatted metric string
49+
/// Newline separated Prometheus formatted metric string
5050
public func collect() -> String {
5151
return self.lock.withLock {
5252
var output = [String]()

Sources/Prometheus/MetricTypes/Gauge.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class PromGauge<NumType: Numeric, Labels: MetricLabels>: PromMetric, Prom
3131
///
3232
/// - Parameters:
3333
/// - name: Name of the Gauge
34-
/// - help: Helpt text of the Gauge
34+
/// - help: Help text of the Gauge
3535
/// - initialValue: Initial value to set the Gauge to
3636
/// - p: Prometheus instance that created this Gauge
3737
///
@@ -47,7 +47,7 @@ public class PromGauge<NumType: Numeric, Labels: MetricLabels>: PromMetric, Prom
4747
/// Gets the metric string for this Gauge
4848
///
4949
/// - Returns:
50-
/// Newline seperated Prometheus formatted metric string
50+
/// Newline separated Prometheus formatted metric string
5151
public func collect() -> String {
5252
return self.lock.withLock {
5353
var output = [String]()

Sources/Prometheus/MetricTypes/Histogram.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class PromHistogram<NumType: DoubleRepresentable, Labels: HistogramLabels
7777
/// Gets the metric string for this Histogram
7878
///
7979
/// - Returns:
80-
/// Newline seperated Prometheus formatted metric string
80+
/// Newline separated Prometheus formatted metric string
8181
public func collect() -> String {
8282
return self.lock.withLock {
8383
var output = [String]()

Sources/Prometheus/MetricTypes/Summary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class PromSummary<NumType: DoubleRepresentable, Labels: SummaryLabels>: P
7878
/// Gets the metric string for this Summary
7979
///
8080
/// - Returns:
81-
/// Newline seperated Prometheus formatted metric string
81+
/// Newline separated Prometheus formatted metric string
8282
public func collect() -> String {
8383
return self.lock.withLock {
8484
var output = [String]()

Sources/Prometheus/Prometheus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class PrometheusClient {
2424

2525
/// Creates prometheus formatted metrics
2626
///
27-
/// - Returns: Newline seperated string with metrics for all Metric Trackers of this Prometheus instance
27+
/// - Returns: Newline separated string with metrics for all Metric Trackers of this Prometheus instance
2828
public func collect() -> String {
2929
return self.lock.withLock {
3030
return self.metrics.map { $0.collect() }.joined(separator: "\n")

0 commit comments

Comments
 (0)