Skip to content

Commit 671c1e3

Browse files
committed
Avoid running doctest that is expected to panic
1 parent 064431d commit 671c1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: clippy_lints/src/ranges.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ declare_clippy_lint! {
9898
///
9999
/// **Example:**
100100
///
101-
/// ```rust
101+
/// ```rust,no_run
102102
/// fn main() {
103103
/// (10..=0).for_each(|x| println!("{}", x));
104104
///

0 commit comments

Comments
 (0)