Skip to content

Commit 5e46f61

Browse files
authored
Merge pull request #363 from pheki/master
Use imported thread_rng() in main doc example.
2 parents d429784 + 314fedf commit 5e46f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! use rand::{Rng, thread_rng};
1818
//!
1919
//! // thread_rng is often the most convenient source of randomness:
20-
//! let mut rng = rand::thread_rng();
20+
//! let mut rng = thread_rng();
2121
//! if rng.gen() { // random bool
2222
//! let x: f64 = rng.gen(); // random number in range (0, 1)
2323
//! println!("x is: {}", x);

0 commit comments

Comments
 (0)