diff options
| author | bors <bors@rust-lang.org> | 2013-12-15 05:06:24 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-15 05:06:24 -0800 |
| commit | ef7969e86f0b53e4236ca627b31ac09413c07b82 (patch) | |
| tree | a8126b39b840ae330d92ac5e346d151fab32c291 /src/libstd/str.rs | |
| parent | 09bfb3b47383d566a5bbf5aef9429e5c24a93b6d (diff) | |
| parent | b0bcbbb154f11aeb302b45e4ba0627604af181a0 (diff) | |
| download | rust-ef7969e86f0b53e4236ca627b31ac09413c07b82.tar.gz rust-ef7969e86f0b53e4236ca627b31ac09413c07b82.zip | |
auto merge of #10974 : huonw/rust/spellck, r=alexcrichton
Diffstat (limited to 'src/libstd/str.rs')
| -rw-r--r-- | src/libstd/str.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs index af381ef3cf0..caf0b535e05 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -963,10 +963,9 @@ pub fn utf8_char_width(b: u8) -> uint { return UTF8_CHAR_WIDTH[b] as uint; } -/// Struct that contains a `char` and -/// the index of the first byte of the next `char` in a string. -/// This is being used as a datastructure for iterating over -/// the utf8 bytes of a string. +/// Struct that contains a `char` and the index of the first byte of +/// the next `char` in a string. This can be used as a data structure +/// for iterating over the UTF-8 bytes of a string. pub struct CharRange { /// Current `char` ch: char, @@ -1570,7 +1569,8 @@ pub trait StrSlice<'a> { /// ``` fn is_whitespace(&self) -> bool; - /// Returns true if the string contains only alphanumerics. + /// Returns true if the string contains only alphanumeric code + /// points. /// /// Alphanumeric characters are determined by `char::is_alphanumeric`. /// @@ -2518,7 +2518,7 @@ impl<'a> StrSlice<'a> for &'a str { /// Methods for owned strings pub trait OwnedStr { - /// Appends a string slice to the back of a string, without overallocating + /// Appends a string slice to the back of a string, without overallocating. fn push_str_no_overallocate(&mut self, rhs: &str); /// Appends a string slice to the back of a string |
