mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-21 00:00:14 +02:00
Mention FromRef, not From, in State docs (#1311)
This commit is contained in:
@@ -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}};
|
||||
|
||||
Reference in New Issue
Block a user