Skip to content

Commit a1c277b

Browse files
authored
docs: correct rng pre-requisite comment (#835)
Fixes #826
1 parent cd2bfa0 commit a1c277b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tower/src/util/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub trait Rng {
4040
///
4141
/// # Panic
4242
///
43-
/// - If start < end this will panic in debug mode.
43+
/// - If `range.start >= range.end` this will panic in debug mode.
4444
fn next_range(&mut self, range: Range<u64>) -> u64 {
4545
debug_assert!(
4646
range.start < range.end,

0 commit comments

Comments
 (0)