Fixed a (presumed) typo in documentation in matrix_view.rs

Fixed a (presumed) typo in documentation in matrix_view.rs.

Previously it says fixed_view and fixed_slice returns a matrix with `(R::dim(), CView::dim())` consecutive components. I just changed R to RView, because presumably this is a typo.
This commit is contained in:
Adrian H 2024-04-22 17:36:40 +07:00 committed by GitHub
parent a803815bd1
commit 119d69198e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -546,7 +546,7 @@ macro_rules! matrix_view_impl (
$me.$generic_view_with_steps(start, shape, steps) $me.$generic_view_with_steps(start, shape, steps)
} }
/// Slices this matrix starting at its component `(irow, icol)` and with `(R::dim(), /// Slices this matrix starting at its component `(irow, icol)` and with `(RView::dim(),
/// CView::dim())` consecutive components. /// CView::dim())` consecutive components.
#[inline] #[inline]
#[deprecated = slice_deprecation_note!($fixed_view)] #[deprecated = slice_deprecation_note!($fixed_view)]
@ -555,7 +555,7 @@ macro_rules! matrix_view_impl (
$me.$fixed_view(irow, icol) $me.$fixed_view(irow, icol)
} }
/// Return a view of this matrix starting at its component `(irow, icol)` and with `(R::dim(), /// Return a view of this matrix starting at its component `(irow, icol)` and with `(RView::dim(),
/// CView::dim())` consecutive components. /// CView::dim())` consecutive components.
#[inline] #[inline]
pub fn $fixed_view<const RVIEW: usize, const CVIEW: usize>($me: $Me, irow: usize, icol: usize) pub fn $fixed_view<const RVIEW: usize, const CVIEW: usize>($me: $Me, irow: usize, icol: usize)