diff options
| author | kennytm <kennytm@gmail.com> | 2019-05-31 20:02:07 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2019-05-31 20:02:07 +0800 |
| commit | be6fc6aca26b7de1f69102a56689dac8b66e38f5 (patch) | |
| tree | 6eb236482a0a1eca5f162a0d94021dc09907316b /src/libcore/slice | |
| parent | 3ade426ede7bca4a74bc641a12f2e7fe2cc20c47 (diff) | |
Stabilize copy_within
Diffstat (limited to 'src/libcore/slice')
| -rw-r--r-- | src/libcore/slice/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index 0e782bef39d..44ff3696b8d 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -2146,14 +2146,13 @@ impl<T> [T] { /// Copying four bytes within a slice: /// /// ``` - /// # #![feature(copy_within)] /// let mut bytes = *b"Hello, World!"; /// /// bytes.copy_within(1..5, 8); /// /// assert_eq!(&bytes, b"Hello, Wello!"); /// ``` - #[unstable(feature = "copy_within", issue = "54236")] + #[stable(feature = "copy_within", since = "1.37.0")] pub fn copy_within<R: ops::RangeBounds<usize>>(&mut self, src: R, dest: usize) where T: Copy, |
