summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-09-02 01:35:58 -0400
committerJoseph Crail <jbcrail@gmail.com>2014-09-03 23:10:38 -0400
commitb7bfe04b2d003d08f6ac450f41d7f221cb87f129 (patch)
tree0bb355348f8f89601ad778d494f22e5f004912da /src/libcore
parentd59d97cbec6807166bc237d6f3f9bd1eeb5288d7 (diff)
Fix spelling errors and capitalization.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/char.rs4
-rw-r--r--src/libcore/intrinsics.rs2
-rw-r--r--src/libcore/str.rs8
3 files changed, 7 insertions, 7 deletions
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.
     ///