Skip to content

Commit a5fdf92

Browse files
committed
response: minor comment fixes
Signed-off-by: Luminita Voicu <[email protected]>
1 parent 9b605a8 commit a5fdf92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::headers::Headers;
1212
// This type represents the RequestLine raw parts: method, uri and version.
1313
type RequestLineParts<'a> = (&'a [u8], &'a [u8], &'a [u8]);
1414

15-
/// Finds the first occurence of `sequence` in the `bytes` slice.
15+
/// Finds the first occurrence of `sequence` in the `bytes` slice.
1616
///
1717
/// Returns the starting position of the `sequence` in `bytes` or `None` if the
1818
/// `sequence` is not found.

src/response.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ impl Response {
263263
self.body.clone()
264264
}
265265

266-
/// Returns the HTTP Version of the response.
266+
/// Returns the Content Length of the response.
267267
pub fn content_length(&self) -> i32 {
268268
self.headers.content_length
269269
}
270270

271-
/// Returns the HTTP Version of the response.
271+
/// Returns the Content Type of the response.
272272
pub fn content_type(&self) -> MediaType {
273273
self.headers.content_type
274274
}

0 commit comments

Comments
 (0)