]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/str.rs
rollup merge of #20463: amaranth/black_box_output
[rust.git] / src / libcollections / str.rs
index 7aa87ffaae260142d8a4cffa62c94aa8ae93cd92..f7668930660b0203481894aaeb05ff408d0e8210 100644 (file)
@@ -807,7 +807,7 @@ fn slice_from(&self, begin: uint) -> &str {
     /// out of bounds.
     ///
     /// See also `slice`, `slice_from` and `slice_chars`.
-    #[unstable = "use slice notation [0..a] instead"]
+    #[unstable = "use slice notation [..a] instead"]
     fn slice_to(&self, end: uint) -> &str {
         core_str::StrExt::slice_to(&self[], end)
     }