1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 09:42:40 +01:00

Fix typo in httpresponse.rs

This commit is contained in:
Matthijs Brobbel 2018-05-29 18:11:10 +02:00 committed by GitHub
parent fb582a6bca
commit 6b43fc7068
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();