Skip to content

Commit

Permalink
core: Update docs for escape_unicode, escape_default
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Nov 21, 2014
1 parent 73622f8 commit 879af89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libcore/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ pub trait Char {
#[deprecated = "use the char::from_u32 free function"]
fn from_u32(i: u32) -> Option<char>;

/// Returns the hexadecimal Unicode escape of a character.
/// Returns an iterator that yields the hexadecimal Unicode escape
/// of a character, as `char`s.
///
/// The rules are as follows:
///
Expand All @@ -272,8 +273,8 @@ pub trait Char {
#[unstable = "pending error conventions, trait organization"]
fn escape_unicode(self) -> UnicodeEscapedChars;

/// Returns a 'default' ASCII and C++11-like literal escape of a
/// character.
/// Returns an iterator that yields the 'default' ASCII and
/// C++11-like literal escape of a character, as `char`s.
///
/// The default is chosen with a bias toward producing literals that are
/// legal in a variety of languages, including C++11 and similar C-family
Expand Down

0 comments on commit 879af89

Please sign in to comment.