From 1572006c3bd7d9fcb5220b668d8159cd93e2e13e Mon Sep 17 00:00:00 2001 From: SomeB1oody Date: Sat, 18 Jul 2026 22:10:14 -0700 Subject: [PATCH] fix(docs): point section links at the pages that define their anchors The ArrayRef/LayoutRef refactor in #1532 moved impl blocks off ArrayBase. The link text stayed put. Retarget each link at the page that actually defines the anchor. Docs only, no code change. --- src/impl_methods.rs | 12 ++++++------ src/impl_views/splitting.rs | 2 +- src/lib.rs | 14 +++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/impl_methods.rs b/src/impl_methods.rs index 8046f4d1f..7854b2c80 100644 --- a/src/impl_methods.rs +++ b/src/impl_methods.rs @@ -513,7 +513,7 @@ impl ArrayRef /// Return a sliced view of the array. /// - /// See [*Slicing*](#slicing) for full documentation. + /// See [*Slicing*](ArrayBase#slicing) for full documentation. /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo). /// /// **Panics** if an index is out of bounds or step size is zero.
@@ -527,7 +527,7 @@ impl ArrayRef /// Return a sliced read-write view of the array. /// - /// See [*Slicing*](#slicing) for full documentation. + /// See [*Slicing*](ArrayBase#slicing) for full documentation. /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo). /// /// **Panics** if an index is out of bounds or step size is zero.
@@ -541,7 +541,7 @@ impl ArrayRef /// Return multiple disjoint, sliced, mutable views of the array. /// - /// See [*Slicing*](#slicing) for full documentation. See also + /// See [*Slicing*](ArrayBase#slicing) for full documentation. See also /// [`MultiSliceArg`], [`s!`], [`SliceArg`], and /// [`SliceInfo`](crate::SliceInfo). /// @@ -640,7 +640,7 @@ impl LayoutRef /// [`.slice_move()`]: ArrayBase::slice_move /// [`.index_axis_move()`]: ArrayBase::index_axis_move /// - /// See [*Slicing*](#slicing) for full documentation. + /// See [*Slicing*](ArrayBase#slicing) for full documentation. /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo). /// /// **Panics** in the following cases: @@ -995,7 +995,7 @@ impl ArrayRef /// Returns a view restricted to `index` along the axis, with the axis /// removed. /// - /// See [*Subviews*](#subviews) for full documentation. + /// See [*Subviews*](ArrayBase#subviews) for full documentation. /// /// **Panics** if `axis` or `index` is out of bounds. /// @@ -1315,7 +1315,7 @@ impl ArrayRef /// /// Iterator element is `ArrayView` (read-only array view). /// - /// See [*Subviews*](#subviews) for full documentation. + /// See [*Subviews*](ArrayBase#subviews) for full documentation. /// /// **Panics** if `axis` is out of bounds. /// diff --git a/src/impl_views/splitting.rs b/src/impl_views/splitting.rs index 42b12b159..a7cf8f830 100644 --- a/src/impl_views/splitting.rs +++ b/src/impl_views/splitting.rs @@ -153,7 +153,7 @@ where D: Dimension /// consumes `self` and produces views with lifetimes matching that of /// `self`. /// - /// See [*Slicing*](#slicing) for full documentation. See also + /// See [*Slicing*](ArrayBase#slicing) for full documentation. See also /// [`MultiSliceArg`], [`s!`], [`SliceArg`](crate::SliceArg), and /// [`SliceInfo`](crate::SliceInfo). /// diff --git a/src/lib.rs b/src/lib.rs index 57674acb3..3d980e9c0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -297,11 +297,11 @@ pub type Ixs = isize; /// + [Broadcasting](#broadcasting) /// + [Conversions](#conversions) /// + [Constructor Methods for Owned Arrays](#constructor-methods-for-owned-arrays) -/// + [Methods For All Array Types](#methods-for-all-array-types) -/// + [Methods For 1-D Arrays](#methods-for-1-d-arrays) -/// + [Methods For 2-D Arrays](#methods-for-2-d-arrays) -/// + [Methods for Dynamic-Dimensional Arrays](#methods-for-dynamic-dimensional-arrays) -/// + [Numerical Methods for Arrays](#numerical-methods-for-arrays) +/// + [Methods For All Array Types](LayoutRef#methods-for-all-array-types) +/// + [Methods For 1-D Arrays](ArrayRef#methods-for-1-d-arrays) +/// + [Methods For 2-D Arrays](ArrayRef#methods-for-2-d-arrays) +/// + [Methods for Dynamic-Dimensional Arrays](LayoutRef#methods-for-dynamic-dimensional-arrays) +/// + [Numerical Methods for Arrays](ArrayRef#numerical-methods-for-arrays) /// /// ## `Array` /// @@ -1574,7 +1574,7 @@ pub struct RawRef(LayoutRef); /// See also: /// /// + [Constructor Methods for Owned Arrays](ArrayBase#constructor-methods-for-owned-arrays) -/// + [Methods For All Array Types](ArrayBase#methods-for-all-array-types) +/// + [Methods For All Array Types](LayoutRef#methods-for-all-array-types) pub type ArcArray = ArrayBase, D>; /// An array that owns its data uniquely. @@ -1591,7 +1591,7 @@ pub type ArcArray = ArrayBase, D>; /// See also: /// /// + [Constructor Methods for Owned Arrays](ArrayBase#constructor-methods-for-owned-arrays) -/// + [Methods For All Array Types](ArrayBase#methods-for-all-array-types) +/// + [Methods For All Array Types](LayoutRef#methods-for-all-array-types) /// + Dimensionality-specific type aliases /// [`Array1`], /// [`Array2`],