mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 14:46:32 +01:00
Fixing a typo in the documentation of with_state
method of Router, making it more clear (#2838)
This commit is contained in:
parent
205371a6b5
commit
37e4574012
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue