From 929729554285a7f4111c195924066759bc46c365 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Fri, 8 Jan 2021 10:59:28 -0800 Subject: [PATCH 1/2] Fixing typographical errors. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c0a3b2e85..beea4fd04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -300,7 +300,7 @@ pub type Ixs = isize; /// /// [`ArrayView`] and [`ArrayViewMut`] are read-only and read-write array views /// respectively. They use dimensionality, indexing, and almost all other -/// methods the same was as the other array types. +/// methods the same way as the other array types. /// /// Methods for `ArrayBase` apply to array views too, when the trait bounds /// allow. From 911d71e2cb27abe7d7583ba650665110901315fb Mon Sep 17 00:00:00 2001 From: David Sanders Date: Fri, 8 Jan 2021 11:21:42 -0800 Subject: [PATCH 2/2] Fixing typographical errors. --- src/impl_methods.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/impl_methods.rs b/src/impl_methods.rs index cccc195a1..06bd9189b 100644 --- a/src/impl_methods.rs +++ b/src/impl_methods.rs @@ -69,7 +69,7 @@ where self.dim.clone().into_pattern() } - /// Return the shape of the array as it stored in the array. + /// Return the shape of the array as it's stored in the array. /// /// This is primarily useful for passing to other `ArrayBase` /// functions, such as when creating another array of the same @@ -630,7 +630,7 @@ where /// /// The caller must ensure that: /// - /// 1. both `index1 and `index2` are in-bounds and + /// 1. both `index1` and `index2` are in-bounds and /// /// 2. the data is uniquely held by the array. (This property is guaranteed /// for `Array` and `ArrayViewMut`, but not for `ArcArray` or `CowArray`.) @@ -929,7 +929,7 @@ where /// Return a producer and iterable that traverses over all 1D lanes /// pointing in the direction of `axis`. /// - /// When the pointing in the direction of the first axis, they are *columns*, + /// When pointing in the direction of the first axis, they are *columns*, /// in the direction of the last axis *rows*; in general they are all /// *lanes* and are one dimensional. /// @@ -1198,7 +1198,7 @@ where (len, stride) } - /// Return an view of the diagonal elements of the array. + /// Return a view of the diagonal elements of the array. /// /// The diagonal is simply the sequence indexed by *(0, 0, .., 0)*, /// *(1, 1, ..., 1)* etc as long as all axes have elements. @@ -1257,7 +1257,7 @@ where /// Return `true` if the array data is laid out in contiguous “C order” in /// memory (where the last index is the most rapidly varying). /// - /// Return `false` otherwise, i.e the array is possibly not + /// Return `false` otherwise, i.e. the array is possibly not /// contiguous in memory, it has custom strides, etc. pub fn is_standard_layout(&self) -> bool { fn is_standard_layout(dim: &D, strides: &D) -> bool {