Skip to content

Commit ff4a3fb

Browse files
committed
Auto merge of #4536 - matthiaskrgr:impl_lint_doc, r=flip1995
docs: fix broken link in adding_lints documantation changelog: none
2 parents 30c75ed + 6038c31 commit ff4a3fb

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

doc/adding_lints.md

+17-15
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@ creating an example lint from scratch.
77
To get started, we will create a lint that detects functions called `foo`,
88
because that's clearly a non-descriptive name.
99

10-
* [Setup](#Setup)
11-
* [Testing](#Testing)
12-
* [Rustfix tests](#Rustfix-tests)
13-
* [Edition 2018 tests](#Edition-2018-tests)
14-
* [Lint declaration](#Lint-declaration)
15-
* [Lint passes](#Lint-passes)
16-
* [Emitting a lint](#Emitting-a-lint)
17-
* [Adding the lint logic](#Adding-the-lint-logic)
18-
* [Author lint](#Author-lint)
19-
* [Documentation](#Documentation)
20-
* [Running rustfmt](#Running-rustfmt)
21-
* [Debugging](#Debugging)
22-
* [PR Checklist](#PR-Checklist)
23-
* [Cheatsheet](#Cheatsheet)
10+
- [Adding a new lint](#adding-a-new-lint)
11+
- [Setup](#setup)
12+
- [Testing](#testing)
13+
- [Rustfix tests](#rustfix-tests)
14+
- [Edition 2018 tests](#edition-2018-tests)
15+
- [Testing manually](#testing-manually)
16+
- [Lint declaration](#lint-declaration)
17+
- [Lint passes](#lint-passes)
18+
- [Emitting a lint](#emitting-a-lint)
19+
- [Adding the lint logic](#adding-the-lint-logic)
20+
- [Author lint](#author-lint)
21+
- [Documentation](#documentation)
22+
- [Running rustfmt](#running-rustfmt)
23+
- [Debugging](#debugging)
24+
- [PR Checklist](#pr-checklist)
25+
- [Cheatsheet](#cheatsheet)
2426

2527
### Setup
2628

@@ -309,7 +311,7 @@ If you have trouble implementing your lint, there is also the internal `author`
309311
lint to generate Clippy code that detects the offending pattern. It does not
310312
work for all of the Rust syntax, but can give a good starting point.
311313

312-
The quickest way to use it, is the [Rust playground][play].rust-lang.org).
314+
The quickest way to use it, is the [Rust playground: play.rust-lang.org][Play].
313315
Put the code you want to lint into the editor and add the `#[clippy::author]`
314316
attribute above the item. Then run Clippy via `Tools -> Clippy` and you should
315317
see the generated code in the output below.

0 commit comments

Comments
 (0)