We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 962b132 + 0b1976c commit 59820fcCopy full SHA for 59820fc
src/libcollections/str.rs
@@ -1110,9 +1110,8 @@ impl str {
1110
/// such as leaving a combining character as the first code point of the
1111
/// string.
1112
///
1113
- /// Due to the design of UTF-8, this operation is `O(end)`. See `slice`,
1114
- /// `slice_to` and `slice_from` for `O(1)` variants that use byte indices
1115
- /// rather than code point indices.
+ /// Due to the design of UTF-8, this operation is `O(end)`. Use slicing
+ /// syntax if you want to use byte indices rather than codepoint indices.
1116
1117
/// # Panics
1118
0 commit comments