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-22 00:08:36 +03:00 committed by GitHub
parent 205371a6b5
commit 37e4574012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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