From 169e2f7c24cbca826b929f774e50dab2cca13a62 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Wed, 24 Aug 2022 00:10:51 +0200 Subject: [PATCH] Mention `FromRef`, not `From`, in `State` docs (#1311) --- axum/src/extract/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}};