Skip to content

Commit 23f1ebe

Browse files
authored
Fix macro name in the Book (#13958)
`define_clippy_lints` does not exist, `declare_clippy_lint` exists. changelog: none
2 parents 8f257c7 + f1d9090 commit 23f1ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/development/defining_lints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ Untracked files:
139139
```
140140

141141

142-
## The `define_clippy_lints` macro
142+
## The `declare_clippy_lint` macro
143143

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

148148
The macro looks something like this:

0 commit comments

Comments
 (0)