Skip to content

Commit 49c2c2c

Browse files
authored
Merge pull request #1297 from oli-obk/deep_code_inspection
fix some doc issues for clippy_dump
2 parents e132820 + 233459e commit 49c2c2c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

clippy_lints/src/utils/inspector.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ use syntax::ast::{Attribute, MetaItemKind};
88

99
/// **What it does:** Dumps every ast/hir node which has the `#[clippy_dump]` attribute
1010
///
11-
/// **Why is this bad?** 😈
12-
///
13-
/// **Known problems:** ∅
14-
///
1511
/// **Example:**
1612
/// ```rust
17-
/// #[inspect]
13+
/// #[clippy_dump]
1814
/// extern crate foo;
1915
/// ```
16+
///
17+
/// prints
18+
///
19+
/// ```
20+
/// item `foo`
21+
/// visibility inherited from outer item
22+
/// extern crate dylib source: "/path/to/foo.so"
23+
/// ```
2024
declare_lint! {
2125
pub DEEP_CODE_INSPECTION,
2226
Warn,

0 commit comments

Comments
 (0)