Minor doc fixes (#1622)

This commit is contained in:
Mario Kaufmann 2022-12-06 22:46:35 +01:00 committed by GitHub
parent 7e13d69639
commit e3d8868f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<B>`
/// - `Request<Request<B>, E> where E: IntoResponse`
/// - `Result<Request<B>, E> where E: IntoResponse`
///
/// ```
/// use axum::{