Rollup merge of #59946 - mernen:patch-2, r=ehuss

Fix equivalent string in escape_default docs

This newline should be escaped.
This commit is contained in:
Mazdak Farrokhzad 2019-04-29 22:22:34 +02:00 committed by GitHub
commit eb3c53071a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4061,7 +4061,7 @@ impl str {
/// Both are equivalent to:
///
/// ```
/// println!("\\u{{2764}}\n!");
/// println!("\\u{{2764}}\\n!");
/// ```
///
/// Using `to_string`: