From a52f25737750d9a88cd74968d7cdac5a967e1b85 Mon Sep 17 00:00:00 2001 From: York Xiang Date: Tue, 27 Dec 2016 11:25:01 +0800 Subject: [PATCH] Fix doc for `escape_debug` --- src/libstd_unicode/char.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index 53dafadb5d568..89f4a97a25442 100644 --- a/src/libstd_unicode/char.rs +++ b/src/libstd_unicode/char.rs @@ -285,7 +285,7 @@ impl char { /// Basic usage: /// /// ``` - /// for i in '\n'.escape_default() { + /// for i in '\n'.escape_debug() { /// println!("{}", i); /// } /// ``` @@ -300,7 +300,7 @@ impl char { /// Collecting into a `String`: /// /// ``` - /// let quote: String = '\n'.escape_default().collect(); + /// let quote: String = '\n'.escape_debug().collect(); /// /// assert_eq!(quote, "\\n"); /// ```