From cacd4578a2a1f3bd4aace770a9da0e4cbc3dc61e Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 4 Mar 2024 21:21:26 -0800 Subject: [PATCH] Fix incorrect 'Accept' swap in rustdocs. Resolves #2743. --- core/lib/src/request/from_request.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/lib/src/request/from_request.rs b/core/lib/src/request/from_request.rs index 1dacb4d2..b24a0f80 100644 --- a/core/lib/src/request/from_request.rs +++ b/core/lib/src/request/from_request.rs @@ -143,14 +143,14 @@ pub type Outcome = outcome::Outcome; /// /// * **&ContentType** /// -/// Extracts the [`ContentType`] from the incoming request via +/// Extracts the [`ContentType`] header from the incoming request via /// [`Request::content_type()`]. If the request didn't specify a /// Content-Type, the request is forwarded with a 500 Internal Server Error /// status. /// -/// * **&ContentType** +/// * **&Accept** /// -/// Extracts the [`Accept`] from the incoming request via +/// Extracts the [`Accept`] header from the incoming request via /// [`Request::accept()`]. If the request didn't specify an `Accept`, the /// request is forwarded with a 500 Internal Server Error status. ///