Skip to content

Commit 35b3ec4

Browse files
authored
Merge pull request #887 from insideoutclub/master
Fixing typographical errors in documentation.
2 parents df97061 + 911d71e commit 35b3ec4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/impl_methods.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ where
7070
self.dim.clone().into_pattern()
7171
}
7272

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.
7474
///
7575
/// This is primarily useful for passing to other `ArrayBase`
7676
/// functions, such as when creating another array of the same
@@ -645,7 +645,7 @@ where
645645
///
646646
/// The caller must ensure that:
647647
///
648-
/// 1. both `index1 and `index2` are in-bounds and
648+
/// 1. both `index1` and `index2` are in-bounds and
649649
///
650650
/// 2. the data is uniquely held by the array. (This property is guaranteed
651651
/// for `Array` and `ArrayViewMut`, but not for `ArcArray` or `CowArray`.)
@@ -944,7 +944,7 @@ where
944944
/// Return a producer and iterable that traverses over all 1D lanes
945945
/// pointing in the direction of `axis`.
946946
///
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*,
948948
/// in the direction of the last axis *rows*; in general they are all
949949
/// *lanes* and are one dimensional.
950950
///
@@ -1213,7 +1213,7 @@ where
12131213
(len, stride)
12141214
}
12151215

1216-
/// Return an view of the diagonal elements of the array.
1216+
/// Return a view of the diagonal elements of the array.
12171217
///
12181218
/// The diagonal is simply the sequence indexed by *(0, 0, .., 0)*,
12191219
/// *(1, 1, ..., 1)* etc as long as all axes have elements.
@@ -1272,7 +1272,7 @@ where
12721272
/// Return `true` if the array data is laid out in contiguous “C order” in
12731273
/// memory (where the last index is the most rapidly varying).
12741274
///
1275-
/// Return `false` otherwise, i.e the array is possibly not
1275+
/// Return `false` otherwise, i.e. the array is possibly not
12761276
/// contiguous in memory, it has custom strides, etc.
12771277
pub fn is_standard_layout(&self) -> bool {
12781278
fn is_standard_layout<D: Dimension>(dim: &D, strides: &D) -> bool {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ pub type Ixs = isize;
302302
///
303303
/// [`ArrayView`] and [`ArrayViewMut`] are read-only and read-write array views
304304
/// respectively. They use dimensionality, indexing, and almost all other
305-
/// methods the same was as the other array types.
305+
/// methods the same way as the other array types.
306306
///
307307
/// Methods for `ArrayBase` apply to array views too, when the trait bounds
308308
/// allow.

0 commit comments

Comments
 (0)