Fixing a typo in the documentation of with_state method of Router, making it more clear (#2838)

This commit is contained in:
Mohamed Eliwa
2024-07-21 23:08:36 +02:00
committed by GitHub
parent 205371a6b5
commit 37e4574012
+1 -1
View File
@@ -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