From 37e4574012e4692931b53e22d44ce4a3a760002f Mon Sep 17 00:00:00 2001 From: Mohamed Eliwa <32942508+mohamedeliwa@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:08:36 +0300 Subject: [PATCH] Fixing a typo in the documentation of `with_state` method of Router, making it more clear (#2838) --- axum/src/docs/routing/with_state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum/src/docs/routing/with_state.md b/axum/src/docs/routing/with_state.md index 30f61ea8..973a87e0 100644 --- a/axum/src/docs/routing/with_state.md +++ b/axum/src/docs/routing/with_state.md @@ -20,7 +20,7 @@ axum::serve(listener, routes).await.unwrap(); # Returning routers with states from functions -When returning `Router`s from functions it is generally recommend not set the +When returning `Router`s from functions, it is generally recommended not to set the state directly: ```rust