Skip to content

Commit

Permalink
src: fix doc comments
Browse files Browse the repository at this point in the history
Missed from f54905c
  • Loading branch information
Fishrock123 authored and jbr committed Jun 27, 2020
1 parent f03ca44 commit 82b8943
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ impl<State> Request<State> {
}

/// Take the request body as a `Body`.
//
// This method can be called after the body has already been taken or read,
// but will return an empty `Body`.
//
// This is useful for consuming the body via an AsyncReader or AsyncBufReader.
///
/// This method can be called after the body has already been taken or read,
/// but will return an empty `Body`.
///
/// This is useful for consuming the body via an AsyncReader or AsyncBufReader.
pub fn take_body(&mut self) -> Body {
self.req.take_body()
}
Expand Down
10 changes: 5 additions & 5 deletions src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ impl Response {
}

/// Take the response body as a `Body`.
//
// This method can be called after the body has already been taken or read,
// but will return an empty `Body`.
//
// Useful for adjusting the whole body, such as in middleware.
///
/// This method can be called after the body has already been taken or read,
/// but will return an empty `Body`.
///
/// Useful for adjusting the whole body, such as in middleware.
pub fn take_body(&mut self) -> Body {
self.res.take_body()
}
Expand Down

0 comments on commit 82b8943

Please sign in to comment.