Skip to content

Commit 89ab5a5

Browse files
authored
Merge pull request #256 from milkcocoa/fix/request-intercept-comment
Fix a typo in Request.intercept.
2 parents 2a2d7ad + 8d8a34a commit 89ab5a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/APIKit/Request.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public protocol Request {
5050

5151
/// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
5252
/// the result of `Session.send()` turns `.failure(.responseError(error))`.
53-
/// The default implementation of this method is provided to throw `RequestError.unacceptableStatusCode`
53+
/// The default implementation of this method is provided to throw `ResponseError.unacceptableStatusCode`
5454
/// if the HTTP status code is not in `200..<300`.
5555
/// - Throws: `Error`
5656
func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any

0 commit comments

Comments
 (0)