From 50c59c7da764b25bab5b763c21571e0d03ae5ad1 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Wed, 7 Sep 2022 00:13:55 +0200 Subject: [PATCH] Fixed docs for chained method routing --- axum/src/routing/method_routing.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/axum/src/routing/method_routing.rs b/axum/src/routing/method_routing.rs index c3a691060a3..35fc65269df 100644 --- a/axum/src/routing/method_routing.rs +++ b/axum/src/routing/method_routing.rs @@ -178,8 +178,8 @@ macro_rules! chained_service_fn { /// Ok::<_, Infallible>(Response::new(Body::empty())) /// }); /// - /// // Requests to `GET /` will go to `service` and `POST /` will go to - /// // `other_service`. + /// // Requests to `GET /` will go to `other_service` and `POST /` will go to + /// // `service`. /// let app = Router::new().route("/", post_service(service).get_service(other_service)); /// # async { /// # axum::Server::bind(&"".parse().unwrap()).serve(app.into_make_service()).await.unwrap(); @@ -242,8 +242,8 @@ macro_rules! chained_handler_fn { /// /// async fn other_handler() {} /// - /// // Requests to `GET /` will go to `handler` and `POST /` will go to - /// // `other_handler`. + /// // Requests to `GET /` will go to `other_handler` and `POST /` will go to + /// // `handler`. /// let app = Router::new().route("/", post(handler).get(other_handler)); /// # async { /// # axum::Server::bind(&"".parse().unwrap()).serve(app.into_make_service()).await.unwrap();