Skip to content

Commit

Permalink
Minor doc fixes (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariokaufmann committed Dec 6, 2022
1 parent 7e13d69 commit e3d8868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axum/src/middleware/map_request.rs
Expand Up @@ -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
Expand All @@ -53,7 +53,7 @@ use tower_service::Service;
/// Specifically the valid return types are:
///
/// - `Request<B>`
/// - `Request<Request<B>, E> where E: IntoResponse`
/// - `Result<Request<B>, E> where E: IntoResponse`
///
/// ```
/// use axum::{
Expand Down

0 comments on commit e3d8868

Please sign in to comment.