Skip to content

Commit

Permalink
fix ArrayBytesFixedDisjointView::new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jan 19, 2025
1 parent 8ab70aa commit ed48abc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zarrs/src/array/array_bytes_fixed_disjoint_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<'a> ArrayBytesFixedDisjointView<'a> {
/// - the length of `bytes` is not the product of the elements in `shape` multiplied by `data_type_size`.
///
/// # Safety
/// The bytes must not overlap with any other views.
/// The `subset` represented by this view must not overlap with the `subset` of any other created views that reference the same array bytes.
///
/// # Panics
/// Panics if the product of the elements in `shape` multiplied by `data_type_size` exceeds [`usize::MAX`].
Expand Down Expand Up @@ -80,9 +80,9 @@ impl<'a> ArrayBytesFixedDisjointView<'a> {
/// Create a new non-overlapping view of the bytes in an array.
///
/// # Safety
/// - `subset` must be inbounds of `shape`.
/// - The length of `bytes` must be the product of the elements in `shape` multiplied by `data_type_size`.
/// - The bytes must not overlap with any other views.
/// - `subset` must be inbounds of `shape`,
/// - the length of `bytes` must be the product of the elements in `shape` multiplied by `data_type_size`, and
/// - the `subset` represented by this view must not overlap with the `subset` of any other created views that reference the same array bytes.
///
/// # Panics
/// Panics if the product of the elements in `shape` multiplied by `data_type_size` exceeds [`usize::MAX`].
Expand Down

0 comments on commit ed48abc

Please sign in to comment.