Skip to content

Commit e9c6347

Browse files
add back replacement character
1 parent 51bbc6e commit e9c6347

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
@@ -2150,7 +2150,7 @@ impl FromUtf8Error {
21502150
/// let input: Vec<u8> = b"Hello \xF0\x90\x80World".into();
21512151
/// let output = String::from_utf8(input).unwrap_or_else(|e| e.into_utf8_lossy());
21522152
///
2153-
/// assert_eq!(String::from("Hello World"), output);
2153+
/// assert_eq!(String::from("Hello World"), output);
21542154
/// ```
21552155
#[must_use]
21562156
#[cfg(not(no_global_oom_handling))]

0 commit comments

Comments
 (0)