Skip to content

Commit 91815b3

Browse files
committed
Adjust method order
1 parent d3ff47c commit 91815b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,21 +2185,21 @@ impl<A, S> ArrayBase<S, (Ix, Ix)>
21852185
self.subview(0, index)
21862186
}
21872187

2188-
/// Return an array view of column `index`.
2188+
/// Return a mutable array view of row `index`.
21892189
///
21902190
/// **Panics** if `index` is out of bounds.
2191-
pub fn column(&self, index: Ix) -> ArrayView<A, Ix>
2191+
pub fn row_mut(&mut self, index: Ix) -> ArrayViewMut<A, Ix>
2192+
where S: DataMut
21922193
{
2193-
self.subview(1, index)
2194+
self.subview_mut(0, index)
21942195
}
21952196

2196-
/// Return a mutable array view of row `index`.
2197+
/// Return an array view of column `index`.
21972198
///
21982199
/// **Panics** if `index` is out of bounds.
2199-
pub fn row_mut(&mut self, index: Ix) -> ArrayViewMut<A, Ix>
2200-
where S: DataMut
2200+
pub fn column(&self, index: Ix) -> ArrayView<A, Ix>
22012201
{
2202-
self.subview_mut(0, index)
2202+
self.subview(1, index)
22032203
}
22042204

22052205
/// Return a mutable array view of column `index`.

0 commit comments

Comments
 (0)