about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Luz <mernen@users.noreply.github.com>2019-04-13 16:44:21 -0300
committerGitHub <noreply@github.com>2019-04-13 16:44:21 -0300
commite2613f521a640500c83d0f661189d63b02a23b52 (patch)
treede14e7e256e465f3a0c181430069aa0ddd99c393
parente4c66afba5d69356879570aeff22db5a38566a86 (diff)
downloadrust-e2613f521a640500c83d0f661189d63b02a23b52.tar.gz
rust-e2613f521a640500c83d0f661189d63b02a23b52.zip
Fix equivalent string in escape_default
-rw-r--r--src/libcore/str/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index f54d7badc3a..6939e5f4ea9 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -4054,7 +4054,7 @@ impl str {
     /// Both are equivalent to:
     ///
     /// ```
-    /// println!("\\u{{2764}}\n!");
+    /// println!("\\u{{2764}}\\n!");
     /// ```
     ///
     /// Using `to_string`: