1
0
mirror of https://github.com/actix/actix-website synced 2024-11-23 16:31:08 +01:00

errors.md: fix type in ResponseError trait (#354)

This commit is contained in:
Niklas Cathor 2023-12-25 15:11:15 +01:00 committed by GitHub
parent 9827067735
commit 2606bb2f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ If a handler returns an `Error` (referring to the [general Rust trait `std::erro
```rust
pub trait ResponseError {
fn error_response(&self) -> Response<Body>;
fn error_response(&self) -> HttpResponse<BoxBody>;
fn status_code(&self) -> StatusCode;
}
```