File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3434 /// Return the array’s data as a slice, if it is contiguous and in standard order.
3535 /// Return `None` otherwise.
3636 ///
37- /// Note that while the method is similar to [`ArrayBase::as_slice()`], this method tranfers
37+ /// Note that while the method is similar to [`ArrayBase::as_slice()`], this method transfers
3838 /// the view's lifetime to the slice, so it is a bit more powerful.
3939 pub fn to_slice ( & self ) -> Option < & ' a [ A ] > {
4040 if self . is_standard_layout ( ) {
@@ -108,7 +108,7 @@ where
108108 /// Return the array’s data as a slice, if it is contiguous and in standard order.
109109 /// Return `None` otherwise.
110110 ///
111- /// Note that while this is similar to [`ArrayBase::as_slice_mut()`], this method tranfers the
111+ /// Note that while this is similar to [`ArrayBase::as_slice_mut()`], this method transfers the
112112 /// view's lifetime to the slice.
113113 pub fn into_slice ( self ) -> Option < & ' a mut [ A ] > {
114114 self . try_into_slice ( ) . ok ( )
You can’t perform that action at this time.
0 commit comments