diff --git a/crates/polars-arrow/src/array/binview/mutable.rs b/crates/polars-arrow/src/array/binview/mutable.rs index 0e8469719417..d7d24a1bec9e 100644 --- a/crates/polars-arrow/src/array/binview/mutable.rs +++ b/crates/polars-arrow/src/array/binview/mutable.rs @@ -20,11 +20,11 @@ use crate::trusted_len::TrustedLen; const DEFAULT_BLOCK_SIZE: usize = 8 * 1024; const MAX_EXP_BLOCK_SIZE: usize = 16 * 1024 * 1024; -// Invariants: -// -// - Each view must point to a valid slice of a buffer -// - `total_buffer_len` must be equal to `completed_buffers.iter().map(Vec::len).sum()` -// - `total_bytes_len` must be equal to `views.iter().map(View::len).sum()` +/// # Safety invariants +/// +/// - Each view must point to a valid slice of a buffer +/// - `total_buffer_len` must be equal to `completed_buffers.iter().map(Vec::len).sum()` +/// - `total_bytes_len` must be equal to `views.iter().map(View::len).sum()` pub struct MutableBinaryViewArray { pub(crate) views: Vec, pub(crate) completed_buffers: Vec>,