docs: fix some typos (#1531)

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cui fliter
2022-04-26 01:00:01 +08:00
committed by GitHub
parent d24a5286c7
commit 6ca5f3e50c
2 changed files with 2 additions and 2 deletions

View File

@@ -579,7 +579,7 @@
### Breaking Changes ### Breaking Changes
- hyper has been upgraded to 0.11, so `header`, `StatusCode`, and `Method` have breaking changes. - hyper has been upgraded to 0.11, so `header`, `StatusCode`, and `Method` have breaking changes.
- `mime` has been ugpraded to 0.3, with a very different API. - `mime` has been upgraded to 0.3, with a very different API.
- All configuration methods have been removed from the `Client`, and moved to the `ClientBuilder`. - All configuration methods have been removed from the `Client`, and moved to the `ClientBuilder`.
- The `HttpVersion` type was completely removed. - The `HttpVersion` type was completely removed.
- `Error::cause()` now returns `Error::get_ref().cause()`. - `Error::cause()` now returns `Error::get_ref().cause()`.

View File

@@ -60,7 +60,7 @@ impl Error {
self.inner.url.as_ref() self.inner.url.as_ref()
} }
/// Returns a mutable referene to the URL related to this error /// Returns a mutable reference to the URL related to this error
/// ///
/// This is useful if you need to remove sensitive information from the URL /// This is useful if you need to remove sensitive information from the URL
/// (e.g. an API key in the query), but do not want to remove the URL /// (e.g. an API key in the query), but do not want to remove the URL