Mention FromRef, not From, in State docs (#1311)

This commit is contained in:
David Pedersen 2022-08-24 00:10:51 +02:00 committed by GitHub
parent b315b60bca
commit 169e2f7c24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}};