]> git.lizzy.rs Git - rust.git/commitdiff
Fix equivalent string in escape_default
authorDaniel Luz <mernen@users.noreply.github.com>
Sat, 13 Apr 2019 19:44:21 +0000 (16:44 -0300)
committerGitHub <noreply@github.com>
Sat, 13 Apr 2019 19:44:21 +0000 (16:44 -0300)
src/libcore/str/mod.rs

index f54d7badc3ae0cb4a7286074b8721764fd43d319..6939e5f4ea999009ee86222e1c2a76d3950663cd 100644 (file)
@@ -4054,7 +4054,7 @@ pub fn escape_debug(&self) -> EscapeDebug {
     /// Both are equivalent to:
     ///
     /// ```
-    /// println!("\\u{{2764}}\n!");
+    /// println!("\\u{{2764}}\\n!");
     /// ```
     ///
     /// Using `to_string`: