Skip to content

Commit

Permalink
Correct float range in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Jun 5, 2018
1 parent cc80995 commit 4f9023c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
//! let mut rng = thread_rng();
//!
//! if rng.gen() { // random bool
//! let x: f64 = rng.gen(); // random number in range (0, 1)
//! let x: f64 = rng.gen(); // random number in range [0, 1)
//! println!("x is: {}", x);
//! let ch = rng.gen::<char>(); // using type annotation
//! println!("char is: {}", ch);
Expand Down

0 comments on commit 4f9023c

Please sign in to comment.