From b7bfe04b2d003d08f6ac450f41d7f221cb87f129 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Tue, 2 Sep 2014 01:35:58 -0400 Subject: Fix spelling errors and capitalization. --- src/libcore/char.rs | 4 ++-- src/libcore/intrinsics.rs | 2 +- src/libcore/str.rs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/char.rs b/src/libcore/char.rs index 95267a8f9e5..c870f1b8f70 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -201,7 +201,7 @@ pub fn escape_unicode(c: char, f: |char|) { /// - Tab, CR and LF are escaped as '\t', '\r' and '\n' respectively. /// - Single-quote, double-quote and backslash chars are backslash-escaped. /// - Any other chars in the range [0x20,0x7e] are not escaped. -/// - Any other chars are given hex unicode escapes; see `escape_unicode`. +/// - Any other chars are given hex Unicode escapes; see `escape_unicode`. /// pub fn escape_default(c: char, f: |char|) { match c { @@ -290,7 +290,7 @@ pub trait Char { /// * Single-quote, double-quote and backslash chars are backslash- /// escaped. /// * Any other chars in the range [0x20,0x7e] are not escaped. - /// * Any other chars are given hex unicode escapes; see `escape_unicode`. + /// * Any other chars are given hex Unicode escapes; see `escape_unicode`. fn escape_default(&self, f: |char|); /// Returns the amount of bytes this character would need if encoded in diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 9636ce6a736..a3d63bbe06c 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -311,7 +311,7 @@ extern "rust-intrinsic" { /// Gives the address for the return value of the enclosing function. /// - /// Using this instrinsic in a function that does not use an out pointer + /// Using this intrinsic in a function that does not use an out pointer /// will trigger a compiler error. pub fn return_address() -> *const u8; diff --git a/src/libcore/str.rs b/src/libcore/str.rs index b067e6299ee..d6f35b0dcc6 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -1128,7 +1128,7 @@ pub trait StrSlice<'a> { fn contains_char(&self, needle: char) -> bool; /// An iterator over the characters of `self`. Note, this iterates - /// over unicode code-points, not unicode graphemes. + /// over Unicode code-points, not Unicode graphemes. /// /// # Example /// @@ -1505,7 +1505,7 @@ pub trait StrSlice<'a> { /// Pluck a character out of a string and return the index of the next /// character. /// - /// This function can be used to iterate over the unicode characters of a + /// This function can be used to iterate over the Unicode characters of a /// string. /// /// # Example @@ -1549,7 +1549,7 @@ pub trait StrSlice<'a> { /// # Return value /// /// A record {ch: char, next: uint} containing the char value and the byte - /// index of the next unicode character. + /// index of the next Unicode character. /// /// # Failure /// @@ -1559,7 +1559,7 @@ pub trait StrSlice<'a> { /// Given a byte position and a str, return the previous char and its position. /// - /// This function can be used to iterate over a unicode string in reverse. + /// This function can be used to iterate over a Unicode string in reverse. /// /// Returns 0 for next index if called on start index 0. /// -- cgit 1.4.1-3-g733a5