Skip to content

Commit f78b18b

Browse files
committed
Fixing dead links in the documentation
1 parent 0831a1a commit f78b18b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ use crate::slice_container::PySliceContainer;
3535
/// # Memory location
3636
///
3737
/// - Case1: Constructed via [`IntoPyArray`](../convert/trait.IntoPyArray.html) or
38-
/// [`from_vec`](#method.from_vec) or [`from_owned_array`](#method.from_owned_vec).
38+
/// [`from_vec`](#method.from_vec) or [`from_owned_array`](#method.from_owned_array).
3939
///
4040
/// These methods don't allocate memory and use `Box<[T]>` as a internal buffer.
4141
///
4242
/// Please take care that **you cannot use some destructive methods like `resize`,
4343
/// for this kind of array**.
4444
///
4545
/// - Case2: Constructed via other methods, like [`ToPyArray`](../convert/trait.ToPyArray.html) or
46-
/// [`from_slice`](#method.from_slice) or [`from_array`](#from_array).
46+
/// [`from_slice`](#method.from_slice) or [`from_array`](#method.from_array).
4747
///
4848
/// These methods allocate memory in Python's private heap.
4949
///
@@ -841,7 +841,7 @@ impl<T: Element, D: Dimension> PyArray<T, D> {
841841
///
842842
/// Please consider the use of safe alternatives
843843
/// ([`PyReadonlyArray::as_array`](../struct.PyReadonlyArray.html#method.as_array)
844-
/// or [`to_array`](#method.to_array)) instead of this.
844+
/// or [`to_owned_array`](#method.to_owned_array)) instead of this.
845845
///
846846
/// # Safety
847847
/// If the internal array is not readonly and can be mutated from Python code,

src/readonly.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::npyffi::NPY_ARRAY_WRITEABLE;
77
use crate::npyiter::{NpySingleIter, NpySingleIterBuilder, Readonly};
88
use crate::{Element, NotContiguousError, NpyIndex, PyArray};
99

10-
/// Readonly reference of [`PyArray`](../array/struct.PyArray.html).
10+
/// Readonly reference of [`PyArray`](../numpy/array/struct.PyArray.html).
1111
///
1212
/// This struct ensures that the internal array is not writeable while holding `PyReadonlyArray`.
1313
/// We use a simple trick for this: modifying the internal flag of the array when creating

0 commit comments

Comments
 (0)