mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-16 22:43:03 +01:00
Mention FromRef
, not From
, in State
docs (#1311)
This commit is contained in:
parent
b315b60bca
commit
169e2f7c24
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ use std::{
|
|||
///
|
||||
/// # Substates
|
||||
///
|
||||
/// [`State`] only allows a single state type but you can use [`From`] to extract "substates":
|
||||
/// [`State`] only allows a single state type but you can use [`FromRef`] to extract "substates":
|
||||
///
|
||||
/// ```
|
||||
/// use axum::{Router, routing::get, extract::{State, FromRef}};
|
||||
|
|
Loading…
Reference in a new issue