From 74758f61c8888b9fb4ea051d39c70be37fe6c9f1 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 3 Jul 2023 09:23:37 +0200 Subject: [PATCH] Fix some typos in the docs --- axum/src/docs/error_handling.md | 2 +- axum/src/handler/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/docs/error_handling.md b/axum/src/docs/error_handling.md index d1b172b974..c797b1d787 100644 --- a/axum/src/docs/error_handling.md +++ b/axum/src/docs/error_handling.md @@ -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 diff --git a/axum/src/handler/mod.rs b/axum/src/handler/mod.rs index d8546a1b71..9aa88b0896 100644 --- a/axum/src/handler/mod.rs +++ b/axum/src/handler/mod.rs @@ -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