mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Fix documentation for MethodRouter::into_make_service (#2176)
This commit is contained in:
@@ -604,9 +604,10 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl MethodRouter<(), Infallible> {
|
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
|
/// ```rust
|
||||||
/// use axum::{
|
/// use axum::{
|
||||||
|
|||||||
Reference in New Issue
Block a user