about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtyom Pavlov <newpavlov@gmail.com>2018-06-26 21:24:05 +0300
committerGitHub <noreply@github.com>2018-06-26 21:24:05 +0300
commitf1cc8b2854d5c4342efc295dd7eddeed9343b556 (patch)
tree966749826eb810e7413cdc6a7f83fcd24e16f612
parentaaf2004f78d84e501c92b3a159de61819bd3db25 (diff)
downloadrust-f1cc8b2854d5c4342efc295dd7eddeed9343b556.tar.gz
rust-f1cc8b2854d5c4342efc295dd7eddeed9343b556.zip
review fix
-rw-r--r--src/libcore/str/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 210fc5fd5a6..e7bebc891d9 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -2453,7 +2453,7 @@ impl str {
     /// }
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[rustc_deprecated(since = "1.28.0", reason = "duplicates `get_unchecked`")]
+    #[rustc_deprecated(since = "1.29.0", reason = "duplicates `get_unchecked`")]
     #[inline]
     pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str {
         (begin..end).get_unchecked(self)
@@ -2484,7 +2484,7 @@ impl str {
     /// * `begin` and `end` must be byte positions within the string slice.
     /// * `begin` and `end` must lie on UTF-8 sequence boundaries.
     #[stable(feature = "str_slice_mut", since = "1.5.0")]
-    #[rustc_deprecated(since = "1.28.0", reason = "duplicates `get_unchecked`")]
+    #[rustc_deprecated(since = "1.29.0", reason = "duplicates `get_unchecked_mut`")]
     #[inline]
     pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str {
         (begin..end).get_unchecked_mut(self)