mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-20 00:00:11 +02:00
Fix documentation for MethodRouter::into_make_service (#2176)
This commit is contained in:
@@ -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::{
|
||||
|
||||
Reference in New Issue
Block a user