diff --git a/src/client/response.rs b/src/client/response.rs index a89efc74a..6aa9b47a2 100644 --- a/src/client/response.rs +++ b/src/client/response.rs @@ -142,7 +142,7 @@ 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. /// @@ -185,7 +185,8 @@ 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.