Fix documentation for MethodRouter::into_make_service (#2176)

This commit is contained in:
Jonas Platte
2023-09-16 22:24:00 +02:00
committed by David Pedersen
parent 9c19c2aad1
commit 133a4dc32e
+3 -2
View File
@@ -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::{