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:
parent
9827067735
commit
2606bb2f93
@ -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;
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user