diff --git a/axum-core/src/response/mod.rs b/axum-core/src/response/mod.rs index 15f67577..166b301b 100644 --- a/axum-core/src/response/mod.rs +++ b/axum-core/src/response/mod.rs @@ -156,6 +156,8 @@ pub trait IntoResponseHeaders { type IntoIter: IntoIterator, HeaderValue), Response>>; /// Attempt to turn `self` into a list of headers. + /// + /// In practice, only the implementation for `axum::response::Headers` ever returns `Err(_)`. #[doc(hidden)] fn into_headers(self) -> Self::IntoIter; }