diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 946a833b3f8..afe7c8bd3b5 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -188,21 +188,15 @@ impl char { /// /// ``` /// for i in '❤'.escape_unicode() { - /// println!("{}", i); + /// print!("{}", i); /// } + /// println!(""); /// ``` /// /// This prints: /// /// ```text - /// \ - /// u - /// { - /// 2 - /// 7 - /// 6 - /// 4 - /// } + /// \u{2764} /// ``` /// /// Collecting into a `String`: