We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d429784 commit 314fedfCopy full SHA for 314fedf
1 file changed
src/lib.rs
@@ -17,7 +17,7 @@
17
//! use rand::{Rng, thread_rng};
18
//!
19
//! // thread_rng is often the most convenient source of randomness:
20
-//! let mut rng = rand::thread_rng();
+//! let mut rng = thread_rng();
21
//! if rng.gen() { // random bool
22
//! let x: f64 = rng.gen(); // random number in range (0, 1)
23
//! println!("x is: {}", x);
0 commit comments