Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4ccc716

Browse files
HTGAzureX1212GrigorenkoPV
andauthoredFeb 16, 2025
fix library/std/src/sys_common/wtf8.rs
Co-authored-by: GrigorenkoPV <GrigorenkoPV+github@yandex.ru>
1 parent dd4f59e commit 4ccc716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/std/src/sys_common/wtf8.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ impl Wtf8 {
668668
/// Lossily converts the string to UTF-8.
669669
/// Returns a UTF-8 `&str` slice if the contents are well-formed in UTF-8.
670670
///
671-
/// Surrogates are replaced with `"\u{FFFD}"` (the replacement character “ ”).
671+
/// Surrogates are replaced with `"\u{FFFD}"` (the replacement character “”).
672672
///
673673
/// This only copies the data if necessary (if it contains any surrogate).
674674
pub fn to_string_lossy(&self) -> Cow<'_, str> {

0 commit comments

Comments
 (0)
Failed to load comments.