@@ -928,7 +928,7 @@ where
928928 /// Iterator element is `ArrayView1<A>` (1D array view).
929929 ///
930930 /// ```
931- /// use ndarray::{ arr3, Axis, arr1} ;
931+ /// use ndarray::arr3;
932932 ///
933933 /// let a = arr3(&[[[ 0, 1, 2], // -- row 0, 0
934934 /// [ 3, 4, 5]], // -- row 0, 1
@@ -996,7 +996,7 @@ where
996996 /// Iterator element is `ArrayView1<A>` (1D array view).
997997 ///
998998 /// ```
999- /// use ndarray::{ arr3, Axis, arr1} ;
999+ /// use ndarray::arr3;
10001000 ///
10011001 /// // The generalized columns of a 3D array:
10021002 /// // are directed along the 0th axis: 0 and 6, 1 and 7 and so on...
@@ -1177,7 +1177,6 @@ where
11771177 /// ```
11781178 /// use ndarray::Array;
11791179 /// use ndarray::{arr3, Axis};
1180- /// use std::iter::FromIterator;
11811180 ///
11821181 /// let a = Array::from_iter(0..28).into_shape((2, 7, 2)).unwrap();
11831182 /// let mut iter = a.axis_chunks_iter(Axis(1), 2);
@@ -2397,10 +2396,10 @@ where
23972396 /// Elements are visited in arbitrary order.
23982397 ///
23992398 /// ```
2399+ /// # #[cfg(feature = "approx")] {
24002400 /// use approx::assert_abs_diff_eq;
24012401 /// use ndarray::arr2;
24022402 ///
2403- /// # #[cfg(feature = "approx")] {
24042403 /// let mut a = arr2(&[[ 0., 1.],
24052404 /// [-1., 2.]]);
24062405 /// a.mapv_inplace(f32::exp);
0 commit comments