Skip to content

Commit 6bc17bf

Browse files
authored
Rollup merge of rust-lang#38629 - bombless:patch-4, r=petrochenkov
Fix doc for `escape_debug`
2 parents 72a90b3 + a52f257 commit 6bc17bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd_unicode/char.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl char {
285285
/// Basic usage:
286286
///
287287
/// ```
288-
/// for i in '\n'.escape_default() {
288+
/// for i in '\n'.escape_debug() {
289289
/// println!("{}", i);
290290
/// }
291291
/// ```
@@ -300,7 +300,7 @@ impl char {
300300
/// Collecting into a `String`:
301301
///
302302
/// ```
303-
/// let quote: String = '\n'.escape_default().collect();
303+
/// let quote: String = '\n'.escape_debug().collect();
304304
///
305305
/// assert_eq!(quote, "\\n");
306306
/// ```

0 commit comments

Comments
 (0)