Fix some typos in the docs

This commit is contained in:
David Pedersen
2023-07-03 09:23:37 +02:00
parent f4accdc95d
commit cc9629fe88
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ It doesn't matter whether you return `Err(StatusCode::NOT_FOUND)` or
axum. axum.
Instead of a direct `StatusCode`, it makes sense to use intermediate error type 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: in handlers. See those examples:
* [`anyhow-error-response`][anyhow] for generic boxed errors * [`anyhow-error-response`][anyhow] for generic boxed errors
+1 -1
View File
@@ -33,7 +33,7 @@
//! ``` //! ```
//! //!
//! Instead of a direct `StatusCode`, it makes sense to use intermediate error type //! 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: //! in handlers. See those examples:
//! //!
//! * [`anyhow-error-response`][anyhow] for generic boxed errors //! * [`anyhow-error-response`][anyhow] for generic boxed errors