Fix documentation of Rand::below (#747)
This commit is contained in:
parent
eb7c8a1174
commit
af3ea172ab
@ -26,7 +26,7 @@ pub trait Rand: Debug + Serialize + DeserializeOwned {
|
||||
/// Gets the next 64 bit value
|
||||
fn next(&mut self) -> u64;
|
||||
|
||||
/// Gets a value below the given 64 bit val (inclusive)
|
||||
/// Gets a value below the given 64 bit val (exclusive)
|
||||
fn below(&mut self, upper_bound_excl: u64) -> u64 {
|
||||
if upper_bound_excl <= 1 {
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user