Skip to content

Commit 9ff1b78

Browse files
Apply suggestions from code review
Co-authored-by: Honza Dvorsky <[email protected]>
1 parent e64158c commit 9ff1b78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenAPIRuntime/Interface/ErrorHandlingMiddleware.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public struct ErrorHandlingMiddleware: ServerMiddleware {
6767
}
6868

6969
/// A protocol used by ``ErrorHandlingMiddleware`` to map an error to an `HTTPResponse` and ``HTTPBody``.
70-
/// Adopters who wish to convert their application error to a HTTPResponse should confirm their error(s) to this protocol.
70+
/// Adopters who wish to convert their application error to an `HTTPResponse` and ``HTTPBody`` should conform the error type to this protocol.
7171
public protocol HTTPResponseConvertible {
7272

73-
/// HTTP status to return in the response.
73+
/// An HTTP status to return in the response.
7474
var httpStatus: HTTPResponse.Status { get }
7575
/// The HTTP headers of the response.
7676
///

0 commit comments

Comments
 (0)