Skip to content

Commit a75fe76

Browse files
committed
Mention that gen_range may overflow for floats (rust-random#1337)
1 parent d0499f0 commit a75fe76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub trait Rng: RngCore {
103103
///
104104
/// # Panics
105105
///
106-
/// Panics if the range is empty.
106+
/// Panics if the range is empty, or if `high - low` overflows for floats.
107107
///
108108
/// # Example
109109
///

0 commit comments

Comments
 (0)