Skip to content

Commit f28c338

Browse files
authored
Basics: fix DiagnosticsHanderWrapper typo (#5877)
Applied renaming to `DiagnosticsHandlerWrapper` within `Basics/Observability.swift`.
1 parent 8bb08b2 commit f28c338

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Basics/Observability.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class ObservabilityScope: DiagnosticsEmitterProtocol, CustomStringC
6666
private let parent: ObservabilityScope?
6767
private let metadata: ObservabilityMetadata?
6868

69-
private var diagnosticsHandler: DiagnosticsHanderWrapper
69+
private var diagnosticsHandler: DiagnosticsHandlerWrapper
7070

7171
fileprivate init(
7272
description: String,
@@ -77,7 +77,7 @@ public final class ObservabilityScope: DiagnosticsEmitterProtocol, CustomStringC
7777
self.description = description
7878
self.parent = parent
7979
self.metadata = metadata
80-
self.diagnosticsHandler = DiagnosticsHanderWrapper(diagnosticsHandler)
80+
self.diagnosticsHandler = DiagnosticsHandlerWrapper(diagnosticsHandler)
8181
}
8282

8383
public func makeChildScope(description: String, metadata: ObservabilityMetadata? = .none) -> Self {
@@ -127,7 +127,7 @@ public final class ObservabilityScope: DiagnosticsEmitterProtocol, CustomStringC
127127
self.diagnosticsHandler.handleDiagnostic(scope: self, diagnostic: diagnostic)
128128
}
129129

130-
private struct DiagnosticsHanderWrapper: DiagnosticsHandler {
130+
private struct DiagnosticsHandlerWrapper: DiagnosticsHandler {
131131
private let underlying: DiagnosticsHandler
132132
private var _errorsReported = ThreadSafeBox<Bool>(false)
133133

@@ -375,7 +375,7 @@ public struct Diagnostic: CustomStringConvertible {
375375
/// Note that specific baggage and context types MAY (and usually do), offer also a way to set baggage values,
376376
/// however in the most general case it is not required, as some frameworks may only be able to offer reading.
377377

378-
// FIXME: we currently requires that Value conforms to CustomStringConvertible which sucks
378+
// FIXME: we currently require that Value conforms to CustomStringConvertible which sucks
379379
// ideally Value would conform to Equatable but that has generic requirement
380380
// luckily, this is about to change so we can clean this up soon
381381
public struct ObservabilityMetadata: CustomDebugStringConvertible {

0 commit comments

Comments
 (0)