Skip to content

Commit

Permalink
Fix documentation for MethodRouter::into_make_service (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored Aug 15, 2023
1 parent 483ba7d commit e84a67e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions axum/src/routing/method_routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,10 @@ where
}

impl MethodRouter<(), Infallible> {
/// Convert the handler into a [`MakeService`].
/// Convert the router into a [`MakeService`].
///
/// This allows you to serve a single handler if you don't need any routing:
/// This allows you to serve a single `MethodRouter` if you don't need any
/// routing based on the path:
///
/// ```rust
/// use axum::{
Expand Down

0 comments on commit e84a67e

Please sign in to comment.