diff options
| author | Oliver Schneider <github6541940@oli-obk.de> | 2015-05-23 19:03:20 +0200 |
|---|---|---|
| committer | Oliver Schneider <github6541940@oli-obk.de> | 2015-05-23 19:03:20 +0200 |
| commit | 59820fcf61f19650a4e2f0281075f0748f40b454 (patch) | |
| tree | 5848fb5a30b1d3cefc9d7161a72a38c5414b3368 | |
| parent | 962b132fe33e9227c1458cc56c4a0bd04ca9ea3e (diff) | |
| parent | 0b1976c2c2426812f2acad60edc520b2646040e3 (diff) | |
| download | rust-59820fcf61f19650a4e2f0281075f0748f40b454.tar.gz rust-59820fcf61f19650a4e2f0281075f0748f40b454.zip | |
Rollup merge of #25716 - steveklabnik:remove_bad_docs, r=Gankro
| -rw-r--r-- | src/libcollections/str.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index b390055664b..d9a45872489 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -1110,9 +1110,8 @@ impl str { /// 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)`. See `slice`, - /// `slice_to` and `slice_from` for `O(1)` variants that use byte indices - /// 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. /// /// # Panics /// |
