Skip to content

Commit

Permalink
Mention that gen_range may overflow for floats (#1337) (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
vks authored Oct 31, 2023
1 parent d0499f0 commit 240cd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub trait Rng: RngCore {
///
/// # Panics
///
/// Panics if the range is empty.
/// Panics if the range is empty, or if `high - low` overflows for floats.
///
/// # Example
///
Expand Down

0 comments on commit 240cd43

Please sign in to comment.