diff --git a/src/async_impl/response.rs b/src/async_impl/response.rs index f88e32179..a93a4d231 100644 --- a/src/async_impl/response.rs +++ b/src/async_impl/response.rs @@ -139,7 +139,8 @@ impl Response { /// Get the full response text. /// /// 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 + /// [`char::REPLACEMENT_CHARACTER`]. /// Encoding is determined from the `charset` parameter of `Content-Type` header, /// and defaults to `utf-8` if not presented. /// @@ -180,7 +181,7 @@ impl Response { /// Get the full response text given a specific encoding. /// /// 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 [`char::REPLACEMENT_CHARACTER`]. /// You can provide a default encoding for decoding the raw message, while the /// `charset` parameter of `Content-Type` header is still prioritized. For more information /// about the possible encoding name, please go to [`encoding_rs`] docs. diff --git a/src/blocking/response.rs b/src/blocking/response.rs index d626fd437..86c81772c 100644 --- a/src/blocking/response.rs +++ b/src/blocking/response.rs @@ -272,7 +272,7 @@ impl Response { /// Get the response text. /// /// 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 [`char::REPLACEMENT_CHARACTER`]. /// Encoding is determined from the `charset` parameter of `Content-Type` header, /// and defaults to `utf-8` if not presented. /// @@ -300,7 +300,7 @@ impl Response { /// Get the response text given a specific encoding. /// /// 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 [`char::REPLACEMENT_CHARACTER`]. /// You can provide a default encoding for decoding the raw message, while the /// `charset` parameter of `Content-Type` header is still prioritized. For more information /// about the possible encoding name, please go to [`encoding_rs`] docs.