Skip to content

Commit 7f13b74

Browse files
authored
Update errors.md
1 parent a0971bf commit 7f13b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If a handler returns an `Error` (referring to the [general Rust trait
1616

1717
```rust
1818
pub trait ResponseError {
19-
fn error_response(&self) -> HttpResponse;
19+
fn error_response(&self) -> Response<Body>;
2020
fn status_code(&self) -> StatusCode;
2121
}
2222
```

0 commit comments

Comments
 (0)