We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
escape_debug
1 parent 77f7c7a commit a52f257Copy full SHA for a52f257
src/libstd_unicode/char.rs
@@ -285,7 +285,7 @@ impl char {
285
/// Basic usage:
286
///
287
/// ```
288
- /// for i in '\n'.escape_default() {
+ /// for i in '\n'.escape_debug() {
289
/// println!("{}", i);
290
/// }
291
@@ -300,7 +300,7 @@ impl char {
300
/// Collecting into a `String`:
301
302
303
- /// let quote: String = '\n'.escape_default().collect();
+ /// let quote: String = '\n'.escape_debug().collect();
304
305
/// assert_eq!(quote, "\\n");
306
0 commit comments