From 597833d906f2453a6976e6ed6ed71af91c534382 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Sat, 9 Oct 2021 01:34:57 +0200 Subject: [PATCH] docs/comments: fix some typos (#1346) --- CHANGELOG.md | 4 ++-- src/async_impl/multipart.rs | 2 +- src/cookie.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index afb89f6..9033524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -139,7 +139,7 @@ - Add `Response::bytes_stream()` method to get body as an `impl Stream`. - Add `Request::try_clone()` method. -- Change default `Client` API to async. The previous blocking client API is avaialble at `reqwest::blocking`. +- Change default `Client` API to async. The previous blocking client API is available at `reqwest::blocking`. - Change to no longer send a default `User-Agent` header. Add one via `ClientBuilder::user_agent()`. - Change to enable system/environment proxy detection by default. - Change `default-tls` feature to only include `ClientBuilder` options that both `native-tls` and `rustls` support. @@ -224,7 +224,7 @@ ### Features -- Add `multipart::Form::percent_encode_noop()` to allow for servers which don't support percent encoding of paramters. +- Add `multipart::Form::percent_encode_noop()` to allow for servers which don't support percent encoding of parameters. - Add `ClientBuilder::http1_title_case_headers()` to force request headers to use Title-Case. - Add `ClientBuilder::connect_timeout()` to allow setting only a connect timeout. diff --git a/src/async_impl/multipart.rs b/src/async_impl/multipart.rs index 38f7668..4573dd9 100644 --- a/src/async_impl/multipart.rs +++ b/src/async_impl/multipart.rs @@ -334,7 +334,7 @@ impl FormParts

{ let header = self.percent_encoding.encode_headers(name, field.metadata()); let header_length = header.len(); self.computed_headers.push(header); - // The additions mimick the format string out of which the field is constructed + // The additions mimic the format string out of which the field is constructed // in Reader. Not the cleanest solution because if that format string is // ever changed then this formula needs to be changed too which is not an // obvious dependency in the code. diff --git a/src/cookie.rs b/src/cookie.rs index 133674e..5bc7ee0 100644 --- a/src/cookie.rs +++ b/src/cookie.rs @@ -10,7 +10,7 @@ use bytes::Bytes; /// Actions for a persistent cookie store providing session support. pub trait CookieStore: Send + Sync { - /// Store a set of Set-Cookie header values recevied from `url` + /// Store a set of Set-Cookie header values received from `url` fn set_cookies(&self, cookie_headers: &mut dyn Iterator, url: &url::Url); /// Get any Cookie values in the store for `url` fn cookies(&self, url: &url::Url) -> Option;