Fix assertions in examples of the exact_chunk() documentation

This commit is contained in:
Sebastian Dröge 2018-01-02 14:55:25 +02:00
parent 83396fc712
commit 802ba9ea5b

View file

@ -651,7 +651,6 @@ impl<T> [T] {
/// let mut iter = slice.chunks(2);
/// assert_eq!(iter.next().unwrap(), &['l', 'o']);
/// assert_eq!(iter.next().unwrap(), &['r', 'e']);
/// assert_eq!(iter.next().unwrap(), &['m']);
/// assert!(iter.next().is_none());
/// ```
#[unstable(feature = "exact_chunks", issue = "47115")]
@ -712,7 +711,7 @@ impl<T> [T] {
/// }
/// count += 1;
/// }
/// assert_eq!(v, &[1, 1, 2, 2, 3]);
/// assert_eq!(v, &[1, 1, 2, 2]);
/// ```
#[unstable(feature = "exact_chunks", issue = "47115")]
#[inline]