mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-28 21:40:55 +00:00
Fix documentation for MethodRouter::into_make_service (#2176)
This commit is contained in:
parent
9c19c2aad1
commit
133a4dc32e
@ -636,9 +636,10 @@ impl<B> MethodRouter<(), B, Infallible>
|
||||
where
|
||||
B: HttpBody + Send + 'static,
|
||||
{
|
||||
/// 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…
x
Reference in New Issue
Block a user