From e84a67e568a5ae9a013e9ad9d4944502af8083ec Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 15 Aug 2023 17:26:53 +0200 Subject: [PATCH] Fix documentation for MethodRouter::into_make_service (#2176) --- axum/src/routing/method_routing.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/axum/src/routing/method_routing.rs b/axum/src/routing/method_routing.rs index 053c9918..c379d194 100644 --- a/axum/src/routing/method_routing.rs +++ b/axum/src/routing/method_routing.rs @@ -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::{