We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8d7a5 commit 51bbc6eCopy full SHA for 51bbc6e
library/alloc/src/string.rs
@@ -627,7 +627,7 @@ impl String {
627
/// let input = b"Hello \xF0\x90\x80World";
628
/// let output = String::from_utf8_lossy(input);
629
///
630
- /// assert_eq!("Hello World", output);
+ /// assert_eq!("Hello �World", output);
631
/// ```
632
#[must_use]
633
#[cfg(not(no_global_oom_handling))]
@@ -694,7 +694,7 @@ impl String {
694
/// let input: Vec<u8> = b"Hello \xF0\x90\x80World".into();
695
/// let output = String::from_utf8_lossy_owned(input);
696
697
- /// assert_eq!(String::from("Hello World"), output);
+ /// assert_eq!(String::from("Hello �World"), output);
698
699
700
0 commit comments