mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Clarify comment
This commit is contained in:
+1
-1
@@ -505,7 +505,7 @@ fn gen_bool(&self) -> bool {
|
||||
self.next() & 1u32 == 1u32
|
||||
}
|
||||
|
||||
/// Return a bool with a 1 in n chance of true
|
||||
/// Return a bool with a 1-in-n chance of true
|
||||
fn gen_weighted_bool(&self, n: uint) -> bool {
|
||||
if n == 0u {
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user