Fix documentation for MethodRouter::into_make_service (#2176)

This commit is contained in:
Jonas Platte
2023-08-15 15:26:53 +00:00
committed by GitHub
parent 483ba7d5b5
commit e84a67e568
+3 -2
View File
@@ -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::{