mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 10:35:22 +00:00
fix error message
This commit is contained in:
parent
725a0ef8b1
commit
3886edb05a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user