1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-20 10:30:02 +00:00

Merge pull request #258 from mbrobbel/patch-1

Fix typo in httpresponse.rs
This commit is contained in:
Nikolay Kim 2018-05-29 09:15:39 -07:00 committed by GitHub
commit 6eee3d1083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ impl HttpResponse {
HttpResponsePool::with_body(status, body.into()) HttpResponsePool::with_body(status, body.into())
} }
/// Constructs a error response /// Constructs an error response
#[inline] #[inline]
pub fn from_error(error: Error) -> HttpResponse { pub fn from_error(error: Error) -> HttpResponse {
let mut resp = error.cause().error_response(); let mut resp = error.cause().error_response();