Skip to content

Commit

Permalink
Rollup merge of rust-lang#59946 - mernen:patch-2, r=ehuss
Browse files Browse the repository at this point in the history
Fix equivalent string in escape_default docs

This newline should be escaped.
  • Loading branch information
Centril authored Apr 29, 2019
2 parents 96d565b + e2613f5 commit eb3c530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4061,7 +4061,7 @@ impl str {
/// Both are equivalent to:
///
/// ```
/// println!("\\u{{2764}}\n!");
/// println!("\\u{{2764}}\\n!");
/// ```
///
/// Using `to_string`:
Expand Down

0 comments on commit eb3c530

Please sign in to comment.