mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
Fix documentation for MethodRouter::into_make_service (#2176)
This commit is contained in:
parent
483ba7d5b5
commit
e84a67e568
1 changed files with 3 additions and 2 deletions
|
@ -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::{
|
||||
|
|
Loading…
Reference in a new issue