From abe0ca6260a795000a975b056f6d0f4a5e93495c Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Thu, 27 Mar 2025 13:41:22 +0800 Subject: [PATCH] docs(response): link to `char::REPLACEMENT_CHARACTER` --- src/client/response.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.