diff options
| author | bors <bors@rust-lang.org> | 2014-03-05 02:51:45 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-05 02:51:45 -0800 |
| commit | ea71a08f6bd9d6b6fc30558027121bfbc66ab349 (patch) | |
| tree | 55da013965518883fa1f0346d156e1b8226bdab8 /src/libstd | |
| parent | 87a31f6f0f15d70ed0d7243379e2c26cd1a4df37 (diff) | |
| parent | c92cdad3ddfc6cce608af5b4cf59115b3745ab39 (diff) | |
| download | rust-ea71a08f6bd9d6b6fc30558027121bfbc66ab349.tar.gz rust-ea71a08f6bd9d6b6fc30558027121bfbc66ab349.zip | |
auto merge of #12708 : SimonSapin/rust/patch-6, r=huonw
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`.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs index ef9be6ee70c..20aaafbe677 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -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. /// |
