Skip to content

Commit 7c7f4b0

Browse files
committed
auto merge of #14816 : theptrk/rust/unclear-comment, r=huonw
The old comment left it unclear if this is creating a random value or doing a check as to whether or not the generator is available or some other operation. See: http://stackoverflow.com/questions/24153311/when-is-rng-gen-not-true
2 parents 021bea1 + f3020c3 commit 7c7f4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/rand/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use std::rand;
6060
use std::rand::Rng;
6161
6262
let mut rng = rand::task_rng();
63-
if rng.gen() { // bool
63+
if rng.gen() { // random bool
6464
println!("int: {}, uint: {}", rng.gen::<int>(), rng.gen::<uint>())
6565
}
6666
```

0 commit comments

Comments
 (0)