Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Minor fix for map_request documentation #1622

Merged
merged 1 commit into from Dec 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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