Skip to content

Commit

Permalink
Rollup merge of rust-lang#38629 - bombless:patch-4, r=petrochenkov
Browse files Browse the repository at this point in the history
Fix doc for `escape_debug`
  • Loading branch information
GuillaumeGomez authored Jan 4, 2017
2 parents 30c405d + a52f257 commit 8b05a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd_unicode/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl char {
/// Basic usage:
///
/// ```
/// for i in '\n'.escape_default() {
/// for i in '\n'.escape_debug() {
/// println!("{}", i);
/// }
/// ```
Expand All @@ -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");
/// ```
Expand Down

0 comments on commit 8b05a91

Please sign in to comment.