diff --git a/axum/src/extract/state.rs b/axum/src/extract/state.rs index eb5ae16e..78470955 100644 --- a/axum/src/extract/state.rs +++ b/axum/src/extract/state.rs @@ -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}};