Skip to content

Commit

Permalink
auto merge of #12708 : SimonSapin/rust/patch-6, r=huonw
Browse files Browse the repository at this point in the history
Feel free to reject this if I’m mistaken, but the `count` in the for loop does look like it’s going from 0 to `end`.
  • Loading branch information
bors committed Mar 5, 2014
2 parents 87a31f6 + c92cdad commit ea71a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/str.rs
Expand Up @@ -1997,8 +1997,8 @@ pub trait StrSlice<'a> {
/// handle edge cases such as leaving a combining character as the
/// first code point of the string.
///
/// Due to the design of UTF-8, this operation is `O(end -
/// begin)`. See `slice`, `slice_to` and `slice_from` for `O(1)`
/// Due to the design of UTF-8, this operation is `O(end)`.
/// See `slice`, `slice_to` and `slice_from` for `O(1)`
/// variants that use byte indices rather than code point
/// indices.
///
Expand Down

0 comments on commit ea71a08

Please sign in to comment.