about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Schubart <michael@schubart.net>2023-10-01 16:32:16 +0100
committerMichael Schubart <michael@schubart.net>2023-10-01 16:44:30 +0100
commit0f8b8625bd309721099002813b8db9290b2bb411 (patch)
treeff4952a0fd3ef4bf399f75806c98206179cde12e
parent0e43a04fabc734226eb31442706f3816ffc84a6a (diff)
downloadrust-0f8b8625bd309721099002813b8db9290b2bb411.tar.gz
rust-0f8b8625bd309721099002813b8db9290b2bb411.zip
Fix documentation link
The file pointed to by the old link

https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L110

did not talk about categories and levels.

The new link (hopefully) points here

https://doc.rust-lang.org/stable/clippy/

which has a nice table explaining the mappings.
-rw-r--r--book/src/development/adding_lints.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/development/adding_lints.md b/book/src/development/adding_lints.md
index f6f0c95c729..e001197842b 100644
--- a/book/src/development/adding_lints.md
+++ b/book/src/development/adding_lints.md
@@ -261,7 +261,7 @@ impl EarlyLintPass for FooFunctions {}
 [declare_clippy_lint]: https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L60
 [example_lint_page]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
 [lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints
-[category_level_mapping]: https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L110
+[category_level_mapping]: ../index.html
 
 ## Lint registration