Skip to content

Commit 4ccc716

Browse files
fix library/std/src/sys_common/wtf8.rs
Co-authored-by: GrigorenkoPV <[email protected]>
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)