diff --git a/src/base/storage.rs b/src/base/storage.rs index 7b197861..598cb061 100644 --- a/src/base/storage.rs +++ b/src/base/storage.rs @@ -171,7 +171,7 @@ pub unsafe trait StorageMut: Storage { /// A matrix storage that is stored contiguously in memory. /// -/// The storage requirement means that for any value of `i` in `[0, nrows * ncols]`, the value +/// The storage requirement means that for any value of `i` in `[0, nrows * ncols - 1]`, the value /// `.get_unchecked_linear` returns one of the matrix component. This trait is unsafe because /// failing to comply to this may cause Undefined Behaviors. pub unsafe trait ContiguousStorage: @@ -181,7 +181,7 @@ pub unsafe trait ContiguousStorage: /// A mutable matrix storage that is stored contiguously in memory. /// -/// The storage requirement means that for any value of `i` in `[0, nrows * ncols]`, the value +/// The storage requirement means that for any value of `i` in `[0, nrows * ncols - 1]`, the value /// `.get_unchecked_linear` returns one of the matrix component. This trait is unsafe because /// failing to comply to this may cause Undefined Behaviors. pub unsafe trait ContiguousStorageMut: