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 GitHub
parent 483ba7d5b5
commit e84a67e568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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