Skip to content

Commit

Permalink
Merge pull request #887 from insideoutclub/master
Browse files Browse the repository at this point in the history
Fixing typographical errors in documentation.
  • Loading branch information
bluss committed Jan 8, 2021
2 parents df97061 + 911d71e commit 35b3ec4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/impl_methods.rs
Expand Up @@ -70,7 +70,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
Expand Down Expand Up @@ -645,7 +645,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`.)
Expand Down Expand Up @@ -944,7 +944,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.
///
Expand Down Expand Up @@ -1213,7 +1213,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.
Expand Down Expand Up @@ -1272,7 +1272,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<D: Dimension>(dim: &D, strides: &D) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -302,7 +302,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.
Expand Down

0 comments on commit 35b3ec4

Please sign in to comment.