Skip to content

Commit

Permalink
add no_run for the bad example
Browse files Browse the repository at this point in the history
  • Loading branch information
nstilt1 committed Jan 24, 2024
1 parent 9fdd1cd commit dc91cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeroize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ unsafe fn volatile_set<T: Copy + Sized>(dst: *mut T, src: T, count: usize) {
///
/// The below example shows what happens when `zeroize_flat_type` is ran on a type containing a
/// smart pointer.
/// ```
/// ```no_run
/// use zeroize::zeroize_flat_type;
///
/// struct UnsafeExample(String);
Expand Down

0 comments on commit dc91cc2

Please sign in to comment.