Skip to content

Commit 0256671

Browse files
samster25adamreichold
authored andcommitted
Correct Type for array.dims()
1 parent 23229ea commit 0256671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl<T: Element, D: Dimension> PyArray<T, D> {
281281
Ok(array)
282282
}
283283

284-
/// Same as [`shape`][PyUntypedArray::shape], but returns `D` insead of `&[usize]`.
284+
/// Same as [`shape`][PyUntypedArray::shape], but returns `D` instead of `&[usize]`.
285285
#[inline(always)]
286286
pub fn dims(&self) -> D {
287287
D::from_dimension(&Dim(self.shape())).expect(DIMENSIONALITY_MISMATCH_ERR)

0 commit comments

Comments
 (0)