Skip to content

Commit fd3651a

Browse files
committed
Fix inspector pass documentation
When using `#[clippy_dump]`, the compiler complains about an unknown attribute. The correct one seems to be `#[clippy::dump]`.
1 parent b1d0343 commit fd3651a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/inspector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ use crate::rustc::hir::print;
1919
use crate::syntax::ast::Attribute;
2020
use crate::utils::get_attr;
2121

22-
/// **What it does:** Dumps every ast/hir node which has the `#[clippy_dump]`
22+
/// **What it does:** Dumps every ast/hir node which has the `#[clippy::dump]`
2323
/// attribute
2424
///
2525
/// **Example:**
2626
/// ```rust
27-
/// #[clippy_dump]
27+
/// #[clippy::dump]
2828
/// extern crate foo;
2929
/// ```
3030
///

0 commit comments

Comments
 (0)