From e3d8868f99b86654a02bcefa8c5ed47502a20fc1 Mon Sep 17 00:00:00 2001 From: Mario Kaufmann Date: Tue, 6 Dec 2022 22:46:35 +0100 Subject: [PATCH] Minor doc fixes (#1622) --- axum/src/middleware/map_request.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/middleware/map_request.rs b/axum/src/middleware/map_request.rs index 6b17f7a0..2a83137d 100644 --- a/axum/src/middleware/map_request.rs +++ b/axum/src/middleware/map_request.rs @@ -44,7 +44,7 @@ use tower_service::Service; /// # let _: Router = app; /// ``` /// -/// # Rejection the request +/// # Rejecting the request /// /// The function given to `map_request` is allowed to also return a `Result` which can be used to /// reject the request and return a response immediately, without calling the remaining @@ -53,7 +53,7 @@ use tower_service::Service; /// Specifically the valid return types are: /// /// - `Request` -/// - `Request, E> where E: IntoResponse` +/// - `Result, E> where E: IntoResponse` /// /// ``` /// use axum::{