1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-30 18:34:36 +01:00

Correct docstring

This commit is contained in:
Douman 2018-06-02 22:27:43 +03:00
parent fce8dd275a
commit 2a9b57f489

View File

@ -293,7 +293,10 @@ impl From<IoError> for PayloadError {
}
}
/// `InternalServerError` for `PayloadError`
/// `PayloadError` returns two possible results:
///
/// - `Overflow` returns `PayloadTooLarge`
/// - Other errors returns `BadRequest`
impl ResponseError for PayloadError {
fn error_response(&self) -> HttpResponse {
match *self {