We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87a31f6 + c92cdad commit ea71a08Copy full SHA for ea71a08
src/libstd/str.rs
@@ -1997,8 +1997,8 @@ pub trait StrSlice<'a> {
1997
/// handle edge cases such as leaving a combining character as the
1998
/// first code point of the string.
1999
///
2000
- /// Due to the design of UTF-8, this operation is `O(end -
2001
- /// 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)`
2002
/// variants that use byte indices rather than code point
2003
/// indices.
2004
0 commit comments