Fix documentation for MethodRouter::into_make_service (#2176)

This commit is contained in:
Jonas Platte 2023-08-15 17:26:53 +02:00 committed by David Pedersen
parent 9c19c2aad1
commit 133a4dc32e

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::{