Skip to content

Commit 7c8d7a5

Browse files
add back replacement character
1 parent fda9b53 commit 7c8d7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ impl String {
587587
/// between the two. Not all byte slices are valid strings, however: strings
588588
/// are required to be valid UTF-8. During this conversion,
589589
/// `from_utf8_lossy()` will replace any invalid UTF-8 sequences with
590-
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD], which looks like this:
590+
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD], which looks like this:
591591
///
592592
/// [byteslice]: prim@slice
593593
/// [U+FFFD]: core::char::REPLACEMENT_CHARACTER

0 commit comments

Comments
 (0)