Skip to content

Commit 51bbc6e

Browse files
add back replacement character
1 parent 7c8d7a5 commit 51bbc6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl String {
627627
/// let input = b"Hello \xF0\x90\x80World";
628628
/// let output = String::from_utf8_lossy(input);
629629
///
630-
/// assert_eq!("Hello World", output);
630+
/// assert_eq!("Hello World", output);
631631
/// ```
632632
#[must_use]
633633
#[cfg(not(no_global_oom_handling))]
@@ -694,7 +694,7 @@ impl String {
694694
/// let input: Vec<u8> = b"Hello \xF0\x90\x80World".into();
695695
/// let output = String::from_utf8_lossy_owned(input);
696696
///
697-
/// assert_eq!(String::from("Hello World"), output);
697+
/// assert_eq!(String::from("Hello World"), output);
698698
/// ```
699699
#[must_use]
700700
#[cfg(not(no_global_oom_handling))]

0 commit comments

Comments
 (0)