From d03775b3894832c2af8b94f8d1d72aa00edffc61 Mon Sep 17 00:00:00 2001 From: Jim Turner Date: Tue, 17 Dec 2019 21:46:18 -0500 Subject: [PATCH] Fix description of required layout for into_shape 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. --- src/impl_methods.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/impl_methods.rs b/src/impl_methods.rs index 10b2be01a..788388aca 100644 --- a/src/impl_methods.rs +++ b/src/impl_methods.rs @@ -1443,8 +1443,8 @@ where } /// Transform the array into `shape`; any shape with the same number of - /// elements is accepted, but the source array or view must be - /// contiguous, otherwise we cannot rearrange the dimension. + /// elements is accepted, but the source array or view must be in standard + /// or column-major (Fortran) layout. /// /// **Errors** if the shapes don't have the same number of elements.
/// **Errors** if the input array is not c- or f-contiguous.