Add #![feature(exact_chunks)] to the documentation examples to fix the doc tests

This commit is contained in:
Sebastian Dröge 2018-01-02 14:54:18 +02:00
parent 51d546f4aa
commit 83396fc712

View file

@ -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;
///