Skip to content

Commit eb3c530

Browse files
authored
Rollup merge of rust-lang#59946 - mernen:patch-2, r=ehuss
Fix equivalent string in escape_default docs This newline should be escaped.
2 parents 96d565b + e2613f5 commit eb3c530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4061,7 +4061,7 @@ impl str {
40614061
/// Both are equivalent to:
40624062
///
40634063
/// ```
4064-
/// println!("\\u{{2764}}\n!");
4064+
/// println!("\\u{{2764}}\\n!");
40654065
/// ```
40664066
///
40674067
/// Using `to_string`:

0 commit comments

Comments
 (0)