Skip to content

Commit

Permalink
define_clippy_lints does not exist, declare_clippy_lints exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lapla-cogito committed Jan 7, 2025
1 parent d0d5b8a commit f1d9090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/src/development/defining_lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ Untracked files:
```


## The `define_clippy_lints` macro
## The `declare_clippy_lint` macro

After `cargo dev new_lint`, you should see a macro with the name
`define_clippy_lints`. It will be in the same file if you defined a standalone
`declare_clippy_lint`. It will be in the same file if you defined a standalone
lint, and it will be in `mod.rs` if you defined a type-specific lint.

The macro looks something like this:
Expand Down

0 comments on commit f1d9090

Please sign in to comment.