Skip to content

Commit d8f756e

Browse files
committed
Use 3 x 4 x 5 axis_iter illustration
1 parent 0929ea5 commit d8f756e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/impl_methods.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
524524
/// Return an iterator that traverses over `axis`
525525
/// and yields each subview along it.
526526
///
527-
/// For example, in a 3 × 5 × 5 array, with `axis` equal to `Axis(2)`,
527+
/// For example, in a 3 × 4 × 5 array, with `axis` equal to `Axis(2)`,
528528
/// the iterator element
529-
/// is a 3 × 5 subview (and there are 5 in total), as shown
529+
/// is a 3 × 4 subview (and there are 5 in total), as shown
530530
/// in the picture below.
531531
///
532532
/// Iterator element is `ArrayView<A, D::Smaller>` (read-only array view).
@@ -535,7 +535,7 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
535535
///
536536
/// **Panics** if `axis` is out of bounds.
537537
///
538-
/// <img src="https://bluss.github.io/ndarray/images/axis_iter.svg" height="250px">
538+
/// <img src="https://bluss.github.io/ndarray/images/axis_iter_3_4_5.svg" height="250px">
539539
pub fn axis_iter(&self, axis: Axis) -> AxisIter<A, D::Smaller>
540540
where D: RemoveAxis,
541541
{

0 commit comments

Comments
 (0)