Skip to content

Commit

Permalink
Merge pull request #109 from leebradley/clarify-version-doc
Browse files Browse the repository at this point in the history
Clarify version struct documentation
  • Loading branch information
Lee Bradley committed May 19, 2022
1 parent 0e7d95c commit aa6108b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ pub struct Request<'headers, 'buf: 'headers> {
pub method: Option<&'buf str>,
/// The request path, such as `/about-us`.
pub path: Option<&'buf str>,
/// The request version, such as `HTTP/1.1`.
/// The request minor version, such as `1` for `HTTP/1.1`.
pub version: Option<u8>,
/// The request headers.
pub headers: &'headers mut [Header<'buf>]
Expand Down Expand Up @@ -585,7 +585,7 @@ fn skip_spaces(bytes: &mut Bytes) -> Result<()> {
/// See `Request` docs for explanation of optional values.
#[derive(Debug, Eq, PartialEq)]
pub struct Response<'headers, 'buf: 'headers> {
/// The response version, such as `HTTP/1.1`.
/// The response minor version, such as `1` for `HTTP/1.1`.
pub version: Option<u8>,
/// The response code, such as `200`.
pub code: Option<u16>,
Expand Down

0 comments on commit aa6108b

Please sign in to comment.