From 1aae5a8ea2e406f3368a5181338d31c0c0cf278b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Cassiers?= Date: Wed, 28 Apr 2021 18:30:26 +0200 Subject: [PATCH] Improve documentation of slicing methods. --- src/impl_methods.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/impl_methods.rs b/src/impl_methods.rs index 9ef4277de..617df8232 100644 --- a/src/impl_methods.rs +++ b/src/impl_methods.rs @@ -335,7 +335,8 @@ where /// Return a sliced view of the array. /// /// See [*Slicing*](#slicing) for full documentation. - /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo). + /// See also [`s!`], [`SliceArg`], [`SliceInfo`](crate::SliceInfo), + /// [`.slice_mut()`]: #method.slice_mut and [`.slice_move()`]: #method.slice_move. /// /// **Panics** if an index is out of bounds or step size is zero.
/// (**Panics** if `D` is `IxDyn` and `info` does not match the number of array axes.) @@ -350,7 +351,8 @@ where /// Return a sliced read-write view of the array. /// /// See [*Slicing*](#slicing) for full documentation. - /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo). + /// See also [`s!`], [`SliceArg`], [`SliceInfo`](crate::SliceInfo), + /// [`.slice()`]: #method.slice and [`.slice_move()`]: #method.slice_move. /// /// **Panics** if an index is out of bounds or step size is zero.
/// (**Panics** if `D` is `IxDyn` and `info` does not match the number of array axes.) @@ -396,7 +398,8 @@ where /// Slice the array, possibly changing the number of dimensions. /// /// See [*Slicing*](#slicing) for full documentation. - /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo). + /// See also [`s!`], [`SliceArg`], [`SliceInfo`](crate::SliceInfo), + /// [`.slice()`]: #method.slice and [`.slice_mut()`]: #method.slice_mut. /// /// **Panics** if an index is out of bounds or step size is zero.
/// (**Panics** if `D` is `IxDyn` and `info` does not match the number of array axes.)