Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 20, 2023
1 parent 7e57363 commit d5c1705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ where
///
/// This is not valid for chunked responses as it requires that the body bytes over-read
/// while parsing the http response header would be available for the body reader.
/// For this case, of if the original buffer is not large enough, use
/// For this case, or if the original buffer is not large enough, use
/// [`BodyReader::read_to_end()`] instead from the reader returned by [`ResponseBody::reader()`].
pub async fn read_to_end(self) -> Result<&'buf mut [u8], Error> {
// We can only read responses with Content-Length header to end using the body_buf buffer,
Expand Down

0 comments on commit d5c1705

Please sign in to comment.