Skip to content

Commit 5567eae

Browse files
steveklabnikOliver 'ker' Schneider
authored and
Oliver 'ker' Schneider
committed
Don't mention outdated methods
1 parent a3a06de commit 5567eae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcollections/str.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1110,9 +1110,8 @@ impl str {
11101110
/// such as leaving a combining character as the first code point of the
11111111
/// string.
11121112
///
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.
1113+
/// Due to the design of UTF-8, this operation is `O(end)`. Use slicing
1114+
/// syntax if you want to use byte indices rather than codepoint indices.
11161115
///
11171116
/// # Panics
11181117
///

0 commit comments

Comments
 (0)