Skip to content

Commit 1cf7218

Browse files
committed
Add ignore flag to code fragments
1 parent 5956896 commit 1cf7218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/allow_attribute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ declare_clippy_lint! {
1212
/// ### Why is this bad?
1313
/// Using `#[allow]` isn't bad, but `#[expect]` may be preferred as it lints if the code **doesn't** produce a warning.
1414
/// ### Example
15-
/// ```rust
15+
/// ```rust,ignore
1616
/// #[allow(unused_mut)]
1717
/// fn foo() -> usize {
1818
/// let mut a = Vec::new();
1919
/// a.len()
2020
///}
2121
/// ```
2222
/// Use instead:
23-
/// ```rust
23+
/// ```rust,ignore
2424
/// # #![feature(lint_reasons)]
2525
/// #[expect(unused_mut)]
2626
/// fn foo() -> usize {

0 commit comments

Comments
 (0)