Skip to content

Commit 918bbc3

Browse files
chore: minor improvement for docs (#790)
Signed-off-by: claudecodering <claudecoder@outlook.com>
1 parent 56a365b commit 918bbc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/header/name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ impl HeaderName {
12451245
/// ```should_panic
12461246
/// # use http::header::*;
12471247
/// #
1248-
/// // Parsing a header that contains invalid symbols(s):
1248+
/// // Parsing a header that contains invalid symbols:
12491249
/// HeaderName::from_static("content{}{}length"); // This line panics!
12501250
///
12511251
/// // Parsing a header that contains invalid uppercase characters.

src/header/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::header::name::HeaderName;
1515
/// HTTP spec allows for a header value to contain opaque bytes as well. In this
1616
/// case, the header field value is not able to be represented as a string.
1717
///
18-
/// To handle this, the `HeaderValue` is useable as a type and can be compared
18+
/// To handle this, the `HeaderValue` is usable as a type and can be compared
1919
/// with strings and implements `Debug`. A `to_str` fn is provided that returns
2020
/// an `Err` if the header value contains non visible ascii characters.
2121
#[derive(Clone)]

0 commit comments

Comments
 (0)