Fix documentation of Rand::below (#747)

This commit is contained in:
Sirui Mu 2022-08-28 15:54:01 +08:00 committed by GitHub
parent eb7c8a1174
commit af3ea172ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;