Skip to content

Commit 90c841a

Browse files
committed
core: Update docs for escape_unicode, escape_default
1 parent d1bc665 commit 90c841a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/char.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ pub trait Char {
262262
#[deprecated = "use the char::from_u32 free function"]
263263
fn from_u32(i: u32) -> Option<char>;
264264

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

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

0 commit comments

Comments
 (0)