|
70 | 70 | self.dim.clone().into_pattern()
|
71 | 71 | }
|
72 | 72 |
|
73 |
| - /// Return the shape of the array as it stored in the array. |
| 73 | + /// Return the shape of the array as it's stored in the array. |
74 | 74 | ///
|
75 | 75 | /// This is primarily useful for passing to other `ArrayBase`
|
76 | 76 | /// functions, such as when creating another array of the same
|
@@ -645,7 +645,7 @@ where
|
645 | 645 | ///
|
646 | 646 | /// The caller must ensure that:
|
647 | 647 | ///
|
648 |
| - /// 1. both `index1 and `index2` are in-bounds and |
| 648 | + /// 1. both `index1` and `index2` are in-bounds and |
649 | 649 | ///
|
650 | 650 | /// 2. the data is uniquely held by the array. (This property is guaranteed
|
651 | 651 | /// for `Array` and `ArrayViewMut`, but not for `ArcArray` or `CowArray`.)
|
@@ -944,7 +944,7 @@ where
|
944 | 944 | /// Return a producer and iterable that traverses over all 1D lanes
|
945 | 945 | /// pointing in the direction of `axis`.
|
946 | 946 | ///
|
947 |
| - /// When the pointing in the direction of the first axis, they are *columns*, |
| 947 | + /// When pointing in the direction of the first axis, they are *columns*, |
948 | 948 | /// in the direction of the last axis *rows*; in general they are all
|
949 | 949 | /// *lanes* and are one dimensional.
|
950 | 950 | ///
|
@@ -1213,7 +1213,7 @@ where
|
1213 | 1213 | (len, stride)
|
1214 | 1214 | }
|
1215 | 1215 |
|
1216 |
| - /// Return an view of the diagonal elements of the array. |
| 1216 | + /// Return a view of the diagonal elements of the array. |
1217 | 1217 | ///
|
1218 | 1218 | /// The diagonal is simply the sequence indexed by *(0, 0, .., 0)*,
|
1219 | 1219 | /// *(1, 1, ..., 1)* etc as long as all axes have elements.
|
@@ -1272,7 +1272,7 @@ where
|
1272 | 1272 | /// Return `true` if the array data is laid out in contiguous “C order” in
|
1273 | 1273 | /// memory (where the last index is the most rapidly varying).
|
1274 | 1274 | ///
|
1275 |
| - /// Return `false` otherwise, i.e the array is possibly not |
| 1275 | + /// Return `false` otherwise, i.e. the array is possibly not |
1276 | 1276 | /// contiguous in memory, it has custom strides, etc.
|
1277 | 1277 | pub fn is_standard_layout(&self) -> bool {
|
1278 | 1278 | fn is_standard_layout<D: Dimension>(dim: &D, strides: &D) -> bool {
|
|
0 commit comments