Skip to content

Commit

Permalink
chore: allow non_local_definitions in Standard distribution example
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelOwenDyer committed Mar 6, 2024
1 parent 7ff0fc9 commit 4ef46b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ use crate::Rng;
/// The [`Standard`] distribution may be implemented for user types as follows:
///
/// ```
/// # #![allow(dead_code)]
/// # #![allow(dead_code, non_local_definitions)]
/// use rand::Rng;
/// use rand::distributions::{Distribution, Standard};
///
Expand Down

0 comments on commit 4ef46b1

Please sign in to comment.