Skip to content

Commit 8b59679

Browse files
committed
fix typos
1 parent cdf6fa9 commit 8b59679

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/HealthKitReporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public typealias CorrelationResultsHandler = (
150150
- statistics: statistics. Nil by default
151151
- error: error (optional)
152152
*/
153-
public typealias StatisticsCompeltionHandler = (
153+
public typealias StatisticsCompletionHandler = (
154154
_ statistics: Statistics?,
155155
_ error: Error?
156156
) -> Void

Sources/Service/HealthKitReader.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public class HealthKitReader {
381381
type: QuantityType,
382382
unit: String,
383383
predicate: NSPredicate? = .allSamples,
384-
completionHandler: @escaping StatisticsCompeltionHandler
384+
completionHandler: @escaping StatisticsCompletionHandler
385385
) throws -> StatisticsQuery {
386386
guard let quantityType = type.original as? HKQuantityType else {
387387
throw HealthKitError.invalidType(
@@ -434,7 +434,7 @@ public class HealthKitReader {
434434
enumerateTo: Date,
435435
intervalComponents: DateComponents,
436436
monitorUpdates: Bool = false,
437-
enumerationBlock: @escaping StatisticsCompeltionHandler
437+
enumerationBlock: @escaping StatisticsCompletionHandler
438438
) throws -> StatisticsCollectionQuery {
439439
guard let quantityType = type.original as? HKQuantityType else {
440440
throw HealthKitError.invalidType(

0 commit comments

Comments
 (0)