From 6705b90a15ecfe6b4ee7c097f8c5f76abacd38b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 13 Oct 2020 03:04:33 +0200 Subject: [PATCH] Fix typo in documentation (#1056) This fixes a typo with multiple occurrences in the documentation and rewraps the documentation comments at 80 characters. --- src/async_impl/client.rs | 4 ++-- src/async_impl/request.rs | 6 +++--- src/blocking/request.rs | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs index c726a8b..75610e6 100644 --- a/src/async_impl/client.rs +++ b/src/async_impl/client.rs @@ -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 { diff --git a/src/async_impl/request.rs b/src/async_impl/request.rs index b0a870a..00a9f3a 100644 --- a/src/async_impl/request.rs +++ b/src/async_impl/request.rs @@ -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); diff --git a/src/blocking/request.rs b/src/blocking/request.rs index 472bc6a..10c6171 100644 --- a/src/blocking/request.rs +++ b/src/blocking/request.rs @@ -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);