]> git.lizzy.rs Git - rust.git/commitdiff
Fix inspector pass documentation
authorGuillem Nieto <gnieto.talo@gmail.com>
Tue, 23 Oct 2018 21:03:23 +0000 (23:03 +0200)
committerGuillem Nieto <gnieto.talo@gmail.com>
Tue, 23 Oct 2018 21:03:23 +0000 (23:03 +0200)
When using `#[clippy_dump]`, the compiler complains about an unknown
attribute. The correct one seems to be `#[clippy::dump]`.

clippy_lints/src/utils/inspector.rs

index ea48aa9ab5e7d76e1ccb27a9751d9e6f7027116f..54ca0736c52ed2e833e85495b55229fc1e1835ab 100644 (file)
 use crate::syntax::ast::Attribute;
 use crate::utils::get_attr;
 
-/// **What it does:** Dumps every ast/hir node which has the `#[clippy_dump]`
+/// **What it does:** Dumps every ast/hir node which has the `#[clippy::dump]`
 /// attribute
 ///
 /// **Example:**
 /// ```rust
-/// #[clippy_dump]
+/// #[clippy::dump]
 /// extern crate foo;
 /// ```
 ///