mirror of https://github.com/tokio-rs/axum
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
|
@ -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 New Issue