diff --git a/axum-extra/src/extract/cookie/mod.rs b/axum-extra/src/extract/cookie/mod.rs index 10af3bfc..6df223f0 100644 --- a/axum-extra/src/extract/cookie/mod.rs +++ b/axum-extra/src/extract/cookie/mod.rs @@ -143,8 +143,8 @@ impl CookieJar { /// This is intended to be used in middleware and other places where it might be difficult to /// run extractors. Normally you should create `CookieJar`s through [`FromRequestParts`]. /// - /// If you need a jar that contains the headers from a request use `impl From<&HeaderMap> for - /// CookieJar`. + /// If you need a jar that contains the headers from a request, use + /// [`CookieJar::from_headers`]. /// /// [`FromRequestParts`]: axum::extract::FromRequestParts pub fn new() -> Self {