Skip to content

Commit bb320da

Browse files
committed
Fix: Import arrayvec into code doc examples
1 parent 041a285 commit bb320da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/zeroizable_arrays.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ impl ZeroizeOnDrop for ZeroizeBytes {}
409409
/// This array is useful when specifying fixed size bytes like passwords which need to be zeroed out from memory before being dropped.
410410
/// #### Structure
411411
/// ```rust
412+
/// use arrayvec::ArrayVec;
413+
///
412414
/// pub struct ZeroizeArrayVec<const N: usize, T>(ArrayVec<T, N>);
413415
/// ```
414416
pub struct ZeroizeArrayVec<const N: usize, T: fmt::Debug + ToBlake3Hash>(ArrayVec<T, N>);
@@ -501,6 +503,7 @@ impl<const N: usize, T: fmt::Debug + ToBlake3Hash> ZeroizeOnDrop for ZeroizeArra
501503
/// This array is useful when specifying fixed size bytes like passwords which need to be zeroed out from memory before being dropped.
502504
/// #### Structure
503505
/// ```rust
506+
/// use arrayvec::ArrayVec;
504507
/// pub struct ZeroizeArrayVecBytes<const N: usize>(ArrayVec<u8, N>);
505508
/// ```
506509
pub struct ZeroizeArrayVecBytes<const N: usize>(ArrayVec<u8, N>);

0 commit comments

Comments
 (0)