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:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user