From c6be9776121e48f9ddbd27333c9056e4437d0819 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal <37556332+fmeringdal@users.noreply.github.com> Date: Thu, 8 Sep 2022 21:26:47 +0200 Subject: [PATCH] Fix docs for chained method routing (#1355) --- axum/src/routing/method_routing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/routing/method_routing.rs b/axum/src/routing/method_routing.rs index c3a69106..c011f1e8 100644 --- a/axum/src/routing/method_routing.rs +++ b/axum/src/routing/method_routing.rs @@ -178,7 +178,7 @@ macro_rules! chained_service_fn { /// Ok::<_, Infallible>(Response::new(Body::empty())) /// }); /// - /// // Requests to `GET /` will go to `service` and `POST /` will go to + /// // Requests to `POST /` will go to `service` and `GET /` will go to /// // `other_service`. /// let app = Router::new().route("/", post_service(service).get_service(other_service)); /// # async { @@ -242,7 +242,7 @@ macro_rules! chained_handler_fn { /// /// async fn other_handler() {} /// - /// // Requests to `GET /` will go to `handler` and `POST /` will go to + /// // Requests to `POST /` will go to `handler` and `GET /` will go to /// // `other_handler`. /// let app = Router::new().route("/", post(handler).get(other_handler)); /// # async {