mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-17 00:00:16 +02:00
Fix some typos in the docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user