mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-11 12:31:25 +01:00
Fix some typos in the docs
This commit is contained in:
parent
f4accdc95d
commit
cc9629fe88
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ It doesn't matter whether you return `Err(StatusCode::NOT_FOUND)` or
|
|||
axum.
|
||||
|
||||
Instead of a direct `StatusCode`, it makes sense to use intermediate error type
|
||||
that can ultimately be converted to `Reponse`. This allows using `?` operator
|
||||
that can ultimately be converted to `Response`. This allows using `?` operator
|
||||
in handlers. See those examples:
|
||||
|
||||
* [`anyhow-error-response`][anyhow] for generic boxed errors
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
//! ```
|
||||
//!
|
||||
//! Instead of a direct `StatusCode`, it makes sense to use intermediate error type
|
||||
//! that can ultimately be converted to `Reponse`. This allows using `?` operator
|
||||
//! that can ultimately be converted to `Response`. This allows using `?` operator
|
||||
//! in handlers. See those examples:
|
||||
//!
|
||||
//! * [`anyhow-error-response`][anyhow] for generic boxed errors
|
||||
|
|
Loading…
Reference in a new issue