Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank committed Sep 24, 2020
1 parent df81b6f commit 0a4552d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clippy_lints/src/disallowed_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ declare_clippy_lint! {
///
/// **Example:**
///
/// ```rust
/// ```rust,ignore
/// // example code where clippy issues a warning
/// foo.bad_method(); // Foo is disallowed
/// ```
/// Use instead:
/// ```rust
/// ```rust,ignore
/// // example code which does not raise clippy warning
/// GoodStruct.bad_method(); // not disallowed
/// goodStruct.bad_method(); // not disallowed
/// ```
pub DISALLOWED_METHOD,
nursery,
Expand Down

0 comments on commit 0a4552d

Please sign in to comment.