From a5fdf928ebca1b284d95acbcb391fdef5cc8e5e7 Mon Sep 17 00:00:00 2001 From: Luminita Voicu Date: Thu, 20 May 2021 19:16:41 +0300 Subject: [PATCH] response: minor comment fixes Signed-off-by: Luminita Voicu --- src/request.rs | 2 +- src/response.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/request.rs b/src/request.rs index af5d3a8..c9d3ca3 100644 --- a/src/request.rs +++ b/src/request.rs @@ -12,7 +12,7 @@ use crate::headers::Headers; // This type represents the RequestLine raw parts: method, uri and version. type RequestLineParts<'a> = (&'a [u8], &'a [u8], &'a [u8]); -/// Finds the first occurence of `sequence` in the `bytes` slice. +/// Finds the first occurrence of `sequence` in the `bytes` slice. /// /// Returns the starting position of the `sequence` in `bytes` or `None` if the /// `sequence` is not found. diff --git a/src/response.rs b/src/response.rs index 5312d9d..344871b 100644 --- a/src/response.rs +++ b/src/response.rs @@ -263,12 +263,12 @@ impl Response { self.body.clone() } - /// Returns the HTTP Version of the response. + /// Returns the Content Length of the response. pub fn content_length(&self) -> i32 { self.headers.content_length } - /// Returns the HTTP Version of the response. + /// Returns the Content Type of the response. pub fn content_type(&self) -> MediaType { self.headers.content_type }