mirror of
https://github.com/actix/actix-website
synced 2024-11-30 11:12:57 +01:00
errors.md: fix type in ResponseError trait (#354)
This commit is contained in:
parent
9827067735
commit
2606bb2f93
@ -12,7 +12,7 @@ If a handler returns an `Error` (referring to the [general Rust trait `std::erro
|
|||||||
|
|
||||||
```rust
|
```rust
|
||||||
pub trait ResponseError {
|
pub trait ResponseError {
|
||||||
fn error_response(&self) -> Response<Body>;
|
fn error_response(&self) -> HttpResponse<BoxBody>;
|
||||||
fn status_code(&self) -> StatusCode;
|
fn status_code(&self) -> StatusCode;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user