From a35916c63f75d628458f059a905587dfef1dc373 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Sun, 2 Aug 2026 17:22:41 +0200 Subject: [PATCH] docs(axum-extra): fix CookieJar request header guidance (#3847) --- axum-extra/src/extract/cookie/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {