about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-01-13 10:54:49 +0000
committerGitHub <noreply@github.com>2025-01-13 10:54:49 +0000
commit23f1ebeea2bd44189fa143ff78583d1ef06152b1 (patch)
tree5d088d09aa123d07c9b031215136276ba6ca2a11
parent8f257c71a3a352afa93c34f4af44143e886a2e15 (diff)
parentf1d909034ed2c585097a6180fa0e2061887a8434 (diff)
downloadrust-23f1ebeea2bd44189fa143ff78583d1ef06152b1.tar.gz
rust-23f1ebeea2bd44189fa143ff78583d1ef06152b1.zip
Fix macro name in the Book (#13958)
`define_clippy_lints` does not exist, `declare_clippy_lint` exists.

changelog: none
-rw-r--r--book/src/development/defining_lints.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/src/development/defining_lints.md b/book/src/development/defining_lints.md
index ceabb255e2d..169cecd7d11 100644
--- a/book/src/development/defining_lints.md
+++ b/book/src/development/defining_lints.md
@@ -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: