Skip to content

Commit 2f06327

Browse files
authored
Fix description of required layout for into_shape (#767)
Previously, the first paragraph of the docs indicated that any contiguous array was accepted, while the second paragraph indicated that only c- or f-contiguous arrays were accepted. The second paragraph is correct. This commit fixes the description in the first paragraph to match.
1 parent db1a8a3 commit 2f06327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impl_methods.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,8 @@ where
14431443
}
14441444

14451445
/// Transform the array into `shape`; any shape with the same number of
1446-
/// elements is accepted, but the source array or view must be
1447-
/// contiguous, otherwise we cannot rearrange the dimension.
1446+
/// elements is accepted, but the source array or view must be in standard
1447+
/// or column-major (Fortran) layout.
14481448
///
14491449
/// **Errors** if the shapes don't have the same number of elements.<br>
14501450
/// **Errors** if the input array is not c- or f-contiguous.

0 commit comments

Comments
 (0)