Skip to content

Commit

Permalink
Fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chohner authored and bluss committed Nov 22, 2021
1 parent 5e6ebf5 commit d281b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/impl_views/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where
/// Return the array’s data as a slice, if it is contiguous and in standard order.
/// Return `None` otherwise.
///
/// Note that while the method is similar to [`ArrayBase::as_slice()`], this method tranfers
/// Note that while the method is similar to [`ArrayBase::as_slice()`], this method transfers
/// the view's lifetime to the slice, so it is a bit more powerful.
pub fn to_slice(&self) -> Option<&'a [A]> {
if self.is_standard_layout() {
Expand Down Expand Up @@ -108,7 +108,7 @@ where
/// Return the array’s data as a slice, if it is contiguous and in standard order.
/// Return `None` otherwise.
///
/// Note that while this is similar to [`ArrayBase::as_slice_mut()`], this method tranfers the
/// Note that while this is similar to [`ArrayBase::as_slice_mut()`], this method transfers the
/// view's lifetime to the slice.
pub fn into_slice(self) -> Option<&'a mut [A]> {
self.try_into_slice().ok()
Expand Down

0 comments on commit d281b55

Please sign in to comment.