Skip to content

Commit f998a62

Browse files
committed
DOC: Fix index in example for ArrayView::split_at
1 parent adef586 commit f998a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl_views/splitting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ where
5151
/// ```rust
5252
/// # use ndarray::prelude::*;
5353
/// # let a = aview2(&[[0; 4]; 3]);
54-
/// let (v1, v2) = a.split_at(Axis(0), 1);
54+
/// let (v1, v2) = a.split_at(Axis(0), 2);
5555
/// ```
5656
/// ```text
5757
/// ┌─────┬─────┬─────┬─────┐ 0 ↓ indices

0 commit comments

Comments
 (0)