Skip to content

Commit aa6108b

Browse files
author
Lee Bradley
authored
Merge pull request #109 from leebradley/clarify-version-doc
Clarify version struct documentation
1 parent 0e7d95c commit aa6108b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ pub struct Request<'headers, 'buf: 'headers> {
451451
pub method: Option<&'buf str>,
452452
/// The request path, such as `/about-us`.
453453
pub path: Option<&'buf str>,
454-
/// The request version, such as `HTTP/1.1`.
454+
/// The request minor version, such as `1` for `HTTP/1.1`.
455455
pub version: Option<u8>,
456456
/// The request headers.
457457
pub headers: &'headers mut [Header<'buf>]
@@ -585,7 +585,7 @@ fn skip_spaces(bytes: &mut Bytes) -> Result<()> {
585585
/// See `Request` docs for explanation of optional values.
586586
#[derive(Debug, Eq, PartialEq)]
587587
pub struct Response<'headers, 'buf: 'headers> {
588-
/// The response version, such as `HTTP/1.1`.
588+
/// The response minor version, such as `1` for `HTTP/1.1`.
589589
pub version: Option<u8>,
590590
/// The response code, such as `200`.
591591
pub code: Option<u16>,

0 commit comments

Comments
 (0)