Fix typo in documentation (#1056)

This fixes a typo with multiple occurrences in the documentation and
rewraps the documentation comments at 80 characters.
This commit is contained in:
Patrick Lühne
2020-10-13 03:04:33 +02:00
committed by GitHub
parent d42d16c705
commit 6705b90a15
3 changed files with 8 additions and 8 deletions

View File

@@ -572,8 +572,8 @@ impl ClientBuilder {
/// Enables a request timeout.
///
/// The timeout is applied from the when the request starts connecting
/// until the response body has finished.
/// The timeout is applied from when the request starts connecting until the
/// response body has finished.
///
/// Default is no timeout.
pub fn timeout(mut self, timeout: Duration) -> ClientBuilder {

View File

@@ -229,9 +229,9 @@ impl RequestBuilder {
/// Enables a request timeout.
///
/// The timeout is applied from the when the request starts connecting
/// until the response body has finished. It affects only this request
/// and overrides the timeout configured using `ClientBuilder::timeout()`.
/// The timeout is applied from when the request starts connecting until the
/// response body has finished. It affects only this request and overrides
/// the timeout configured using `ClientBuilder::timeout()`.
pub fn timeout(mut self, timeout: Duration) -> RequestBuilder {
if let Ok(ref mut req) = self.request {
*req.timeout_mut() = Some(timeout);

View File

@@ -329,9 +329,9 @@ impl RequestBuilder {
/// Enables a request timeout.
///
/// The timeout is applied from the when the request starts connecting
/// until the response body has finished. It affects only this request
/// and overrides the timeout configured using `ClientBuilder::timeout()`.
/// The timeout is applied from when the request starts connecting until the
/// response body has finished. It affects only this request and overrides
/// the timeout configured using `ClientBuilder::timeout()`.
pub fn timeout(mut self, timeout: Duration) -> RequestBuilder {
if let Ok(ref mut req) = self.request {
*req.timeout_mut() = Some(timeout);