From 594dfeb12aa6d392e2e8eb7339fd17705b7957c4 Mon Sep 17 00:00:00 2001 From: claudecodering Date: Tue, 4 Nov 2025 15:44:53 +0800 Subject: [PATCH] chore: minor improvement for docs Signed-off-by: claudecodering --- src/header/name.rs | 2 +- src/header/value.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header/name.rs b/src/header/name.rs index 122b96f9..ac701013 100644 --- a/src/header/name.rs +++ b/src/header/name.rs @@ -1245,7 +1245,7 @@ impl HeaderName { /// ```should_panic /// # use http::header::*; /// # - /// // Parsing a header that contains invalid symbols(s): + /// // Parsing a header that contains invalid symbols: /// HeaderName::from_static("content{}{}length"); // This line panics! /// /// // Parsing a header that contains invalid uppercase characters. diff --git a/src/header/value.rs b/src/header/value.rs index 99d1e155..de0758a8 100644 --- a/src/header/value.rs +++ b/src/header/value.rs @@ -15,7 +15,7 @@ use crate::header::name::HeaderName; /// HTTP spec allows for a header value to contain opaque bytes as well. In this /// case, the header field value is not able to be represented as a string. /// -/// To handle this, the `HeaderValue` is useable as a type and can be compared +/// To handle this, the `HeaderValue` is usable as a type and can be compared /// with strings and implements `Debug`. A `to_str` fn is provided that returns /// an `Err` if the header value contains non visible ascii characters. #[derive(Clone)]