Skip to content

Commit 1478fd9

Browse files
rauhulMrLotU
andauthored
Fix various misspellings (#53)
Co-authored-by: Jari (LotU) <[email protected]>
1 parent d642556 commit 1478fd9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Sources/Prometheus/MetricTypes/Gauge.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class PromGauge<NumType: DoubleRepresentable, Labels: MetricLabels>: Prom
7070
}
7171
}
7272

73-
/// Sets the Gauge to the current unixtime in seconds
73+
/// Sets the Gauge to the current unix-time in seconds
7474
///
7575
/// - Parameters:
7676
/// - labels: Labels to attach to the value
@@ -84,7 +84,7 @@ public class PromGauge<NumType: DoubleRepresentable, Labels: MetricLabels>: Prom
8484
/// Tracks in progress blocks of code or functions.
8585
///
8686
/// func someFunc() -> String { return "ABC" }
87-
/// let newFunc = myGauge.trackInprogress(someFunc)
87+
/// let newFunc = myGauge.trackInProgress(someFunc)
8888
/// newFunc() // returns "ABC" and increments & decrements Gauge
8989
///
9090
/// - Parameters:

Sources/Prometheus/MetricTypes/PromMetric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extension PromMetric {
4444

4545
/// Adding a prometheus instance to all metrics
4646
internal protocol PrometheusHandled {
47-
/// Promtheus client handling this metric
47+
/// Prometheus client handling this metric
4848
var prometheus: PrometheusClient? { get }
4949
}
5050

Sources/Prometheus/Prometheus.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public class PrometheusClient {
240240
/// - type: The type the summary will observe
241241
/// - name: Name of the summary
242242
/// - helpText: Help text for the summary. Usually a short description
243-
/// - quantiles: Quantiles to caluculate
243+
/// - quantiles: Quantiles to calculate
244244
/// - labels: Labels to give this summary. Can be left out to default to no labels
245245
///
246246
/// - Returns: Summary instance
@@ -269,7 +269,7 @@ public class PrometheusClient {
269269
/// - type: The type the summary will observe
270270
/// - name: Name of the summary
271271
/// - helpText: Help text for the summary. Usually a short description
272-
/// - quantiles: Quantiles to caluculate
272+
/// - quantiles: Quantiles to calculate
273273
///
274274
/// - Returns: Summary instance
275275
public func createSummary<T: Numeric>(
@@ -284,8 +284,8 @@ public class PrometheusClient {
284284

285285
/// Prometheus specific errors
286286
public enum PrometheusError: Error {
287-
/// Thrown when a user tries to retrive
288-
/// a `PromtheusClient` from `MetricsSystem`
287+
/// Thrown when a user tries to retrieve
288+
/// a `PrometheusClient` from `MetricsSystem`
289289
/// but there was no `PrometheusClient` bootstrapped
290290
case prometheusFactoryNotBootstrapped(bootstrappedWith: String)
291291
}

Sources/Prometheus/PrometheusMetrics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public struct PrometheusLabelSanitizer: LabelSanitizer {
183183
}
184184

185185
/// Defines the base for a bridge between PrometheusClient and swift-metrics.
186-
/// Used by `SwiftMetrics.prometheus()` to get an instance of `PromtheusClient` from `MetricsSystem`
186+
/// Used by `SwiftMetrics.prometheus()` to get an instance of `PrometheusClient` from `MetricsSystem`
187187
///
188188
/// Any custom implementation of `MetricsFactory` using `PrometheusClient` should conform to this implementation.
189189
public protocol PrometheusWrappedMetricsFactory: MetricsFactory {
@@ -360,7 +360,7 @@ public struct DimensionLabels: MetricLabels {
360360

361361
/// Helper for dimensions
362362
/// swift-metrics api doesn't allow setting buckets explicitly.
363-
/// If default buckets don't fit, this Labels implementation is a nice default to create Prometheus metric types wtih
363+
/// If default buckets don't fit, this Labels implementation is a nice default to create Prometheus metric types with
364364
public struct DimensionHistogramLabels: HistogramLabels {
365365
/// Bucket
366366
public var le: String

0 commit comments

Comments
 (0)