Skip to content

Commit 52c8926

Browse files
Update Sources/OpenAPIRuntime/Interface/ErrorHandlingMiddleware.swift
Co-authored-by: Honza Dvorsky <[email protected]>
1 parent 7e7cd05 commit 52c8926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIRuntime/Interface/ErrorHandlingMiddleware.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import HTTPTypes
3838
/// 2. Opt in to the ``ErrorHandlingMiddleware`` while registering the handler:
3939
///
4040
/// ```swift
41-
/// let handler = try await RequestHandler()
41+
/// let handler = RequestHandler()
4242
/// try handler.registerHandlers(on: transport, middlewares: [ErrorHandlingMiddleware()])
4343
/// ```
4444
/// - Note: The placement of ``ErrorHandlingMiddleware`` in the middleware chain is important.

0 commit comments

Comments
 (0)