Skip to content

Commit 1de134b

Browse files
authored
Fix documentation of any_where (rust-lang#2335)
1 parent fea4641 commit 1de134b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/kani/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ pub fn any<T: Arbitrary>() -> T {
119119
/// # Example:
120120
///
121121
/// In the snippet below, we are verifying the behavior of the function `fn_under_verification`
122-
/// under all possible `NonZeroU8` input values between 0 and 12.
122+
/// under all possible `u8` input values between 0 and 12.
123123
///
124124
/// ```rust
125-
/// let inputA = kani::any_where::<std::num::NonZeroU8>(|x| *x < 12);
125+
/// let inputA: u8 = kani::any_where(|x| *x < 12);
126126
/// fn_under_verification(inputA);
127127
/// ```
128128
///

0 commit comments

Comments
 (0)