|
69 | 69 | self.dim.clone().into_pattern()
|
70 | 70 | }
|
71 | 71 |
|
72 |
| - /// Return the shape of the array as it stored in the array. |
| 72 | + /// Return the shape of the array as it's stored in the array. |
73 | 73 | ///
|
74 | 74 | /// This is primarily useful for passing to other `ArrayBase`
|
75 | 75 | /// functions, such as when creating another array of the same
|
@@ -630,7 +630,7 @@ where
|
630 | 630 | ///
|
631 | 631 | /// The caller must ensure that:
|
632 | 632 | ///
|
633 |
| - /// 1. both `index1 and `index2` are in-bounds and |
| 633 | + /// 1. both `index1` and `index2` are in-bounds and |
634 | 634 | ///
|
635 | 635 | /// 2. the data is uniquely held by the array. (This property is guaranteed
|
636 | 636 | /// for `Array` and `ArrayViewMut`, but not for `ArcArray` or `CowArray`.)
|
@@ -929,7 +929,7 @@ where
|
929 | 929 | /// Return a producer and iterable that traverses over all 1D lanes
|
930 | 930 | /// pointing in the direction of `axis`.
|
931 | 931 | ///
|
932 |
| - /// When the pointing in the direction of the first axis, they are *columns*, |
| 932 | + /// When pointing in the direction of the first axis, they are *columns*, |
933 | 933 | /// in the direction of the last axis *rows*; in general they are all
|
934 | 934 | /// *lanes* and are one dimensional.
|
935 | 935 | ///
|
@@ -1198,7 +1198,7 @@ where
|
1198 | 1198 | (len, stride)
|
1199 | 1199 | }
|
1200 | 1200 |
|
1201 |
| - /// Return an view of the diagonal elements of the array. |
| 1201 | + /// Return a view of the diagonal elements of the array. |
1202 | 1202 | ///
|
1203 | 1203 | /// The diagonal is simply the sequence indexed by *(0, 0, .., 0)*,
|
1204 | 1204 | /// *(1, 1, ..., 1)* etc as long as all axes have elements.
|
@@ -1257,7 +1257,7 @@ where
|
1257 | 1257 | /// Return `true` if the array data is laid out in contiguous “C order” in
|
1258 | 1258 | /// memory (where the last index is the most rapidly varying).
|
1259 | 1259 | ///
|
1260 |
| - /// Return `false` otherwise, i.e the array is possibly not |
| 1260 | + /// Return `false` otherwise, i.e. the array is possibly not |
1261 | 1261 | /// contiguous in memory, it has custom strides, etc.
|
1262 | 1262 | pub fn is_standard_layout(&self) -> bool {
|
1263 | 1263 | fn is_standard_layout<D: Dimension>(dim: &D, strides: &D) -> bool {
|
|
0 commit comments