diff options
| author | Sebastian Dröge <sebastian@centricular.com> | 2018-01-02 14:54:18 +0200 |
|---|---|---|
| committer | Sebastian Dröge <sebastian@centricular.com> | 2018-01-13 12:18:51 +0200 |
| commit | 83396fc712aefd24531f7925d377b148da8ed04f (patch) | |
| tree | 68b1cdd1f9467432e4e0d07386a4221bcfc09dd0 /src/liballoc/slice.rs | |
| parent | 51d546f4aa8a94b81d2a580518d95d1ab12a3655 (diff) | |
| download | rust-83396fc712aefd24531f7925d377b148da8ed04f.tar.gz rust-83396fc712aefd24531f7925d377b148da8ed04f.zip | |
Add #![feature(exact_chunks)] to the documentation examples to fix the doc tests
Diffstat (limited to 'src/liballoc/slice.rs')
| -rw-r--r-- | src/liballoc/slice.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index bae36673637..6a3970f3728 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -645,6 +645,8 @@ impl<T> [T] { /// # Examples /// /// ``` + /// #![feature(exact_chunks)] + /// /// let slice = ['l', 'o', 'r', 'e', 'm']; /// let mut iter = slice.chunks(2); /// assert_eq!(iter.next().unwrap(), &['l', 'o']); @@ -699,6 +701,8 @@ impl<T> [T] { /// # Examples /// /// ``` + /// #![feature(exact_chunks)] + /// /// let v = &mut [0, 0, 0, 0, 0]; /// let mut count = 1; /// |
