docs: fix some typos (#1562)

Co-authored-by: Sean McArthur <sean@seanmonstar.com>
This commit is contained in:
Kian-Meng Ang
2022-11-16 06:43:56 +08:00
committed by GitHub
parent e302f75b60
commit 81fc85a689
3 changed files with 3 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ impl Response {
/// ///
/// This method decodes the response body with BOM sniffing /// This method decodes the response body with BOM sniffing
/// and with malformed sequences replaced with the REPLACEMENT CHARACTER. /// and with malformed sequences replaced with the REPLACEMENT CHARACTER.
/// Encoding is determinated from the `charset` parameter of `Content-Type` header, /// Encoding is determined from the `charset` parameter of `Content-Type` header,
/// and defaults to `utf-8` if not presented. /// and defaults to `utf-8` if not presented.
/// ///
/// # Example /// # Example

View File

@@ -267,7 +267,7 @@ impl Response {
/// ///
/// This method decodes the response body with BOM sniffing /// This method decodes the response body with BOM sniffing
/// and with malformed sequences replaced with the REPLACEMENT CHARACTER. /// and with malformed sequences replaced with the REPLACEMENT CHARACTER.
/// Encoding is determinated from the `charset` parameter of `Content-Type` header, /// Encoding is determined from the `charset` parameter of `Content-Type` header,
/// and defaults to `utf-8` if not presented. /// and defaults to `utf-8` if not presented.
/// ///
/// # Example /// # Example

View File

@@ -75,7 +75,7 @@ impl Body {
} }
} }
/// into_part turns a regular body into the body of a mutlipart/form-data part. /// into_part turns a regular body into the body of a multipart/form-data part.
#[cfg(feature = "multipart")] #[cfg(feature = "multipart")]
pub(crate) fn into_part(self) -> Body { pub(crate) fn into_part(self) -> Body {
match self.inner { match self.inner {