mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-20 00:00:11 +02:00
Fixing a typo in the documentation of with_state method of Router, making it more clear (#2838)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user