Skip to content

Commit bec8d38

Browse files
sikevuxczechboy0
andauthored
Correct variable name in ClientMiddleware reference documentation (#19)
### Motivation The example for `ClientMiddleware` doesn't compile ### Modifications Correct the variable name in `ClientMiddleware` ### Result The example can now compile --------- Co-authored-by: Honza Dvorsky <[email protected]>
1 parent 02ae849 commit bec8d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIRuntime/Interface/ClientTransport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public protocol ClientTransport: Sendable {
207207
/// ) async throws -> Response {
208208
/// var request = request
209209
/// request.headerFields.append(.init(
210-
/// name: "Authorization", value: "Bearer \(token)"
210+
/// name: "Authorization", value: "Bearer \(bearerToken)"
211211
/// ))
212212
/// return try await next(request, baseURL)
213213
/// }

0 commit comments

Comments
 (0)