@@ -3300,20 +3300,16 @@ impl<'a, T> IterMut<'a, T> {
3300
3300
///
3301
3301
/// ```
3302
3302
/// # #![feature(slice_iter_mut_as_slice)]
3303
- /// // First, we declare a type which has `iter_mut` method to get the `IterMut`
3304
- /// // struct (&[usize here]):
3305
3303
/// let mut slice: &mut [usize] = &mut [1, 2, 3];
3306
3304
///
3307
- /// // Then , we get the iterator:
3305
+ /// // First , we get the iterator:
3308
3306
/// let mut iter = slice.iter_mut();
3309
- /// // So if we print what the `as_slice` method returns here, we have "[1, 2, 3]":
3310
- /// println!("{:?}", iter.as_slice());
3307
+ /// // So if we check what the `as_slice` method returns here, we have "[1, 2, 3]":
3311
3308
/// assert_eq!(iter.as_slice(), &[1, 2, 3]);
3312
3309
///
3313
3310
/// // Next, we move to the second element of the slice:
3314
3311
/// iter.next();
3315
3312
/// // Now `as_slice` returns "[2, 3]":
3316
- /// println!("{:?}", iter.as_slice());
3317
3313
/// assert_eq!(iter.as_slice(), &[2, 3]);
3318
3314
/// ```
3319
3315
#[ unstable( feature = "slice_iter_mut_as_slice" , reason = "recently added" , issue = "0" ) ]
0 commit comments