diff options
| author | Sebastian Dröge <sebastian@centricular.com> | 2018-01-02 14:55:25 +0200 |
|---|---|---|
| committer | Sebastian Dröge <sebastian@centricular.com> | 2018-01-13 12:18:54 +0200 |
| commit | 802ba9ea5b432d36444d8da8646bd2a1624b9dfa (patch) | |
| tree | c1308d92f800cd7d9d1f052571d5499106c3f4c6 /src/liballoc | |
| parent | 83396fc712aefd24531f7925d377b148da8ed04f (diff) | |
| download | rust-802ba9ea5b432d36444d8da8646bd2a1624b9dfa.tar.gz rust-802ba9ea5b432d36444d8da8646bd2a1624b9dfa.zip | |
Fix assertions in examples of the exact_chunk() documentation
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/slice.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index 6a3970f3728..9ff39363fd7 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -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] |
