Skip to content

Commit 735380b

Browse files
blyxyasflip1995
authored andcommitted
Try to clear up confusion between type and category.
1 parent c22906b commit 735380b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/src/development/defining_lints.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ There are two things to note here:
4141
is an `early` lint pass. We will discuss this difference in a later chapter.
4242
<!-- FIXME: Link that "later chapter" when lint_passes.md is merged -->
4343
2. If not provided, the `category` of this new lint will default to `nursery`.
44-
See Clippy's [lint types](../lints.md) for more information on categories.
4544

4645
The `cargo dev new_lint` command will create a new file: `clippy_lints/src/foo_functions.rs`
4746
as well as [register the lint](#lint-registration).
@@ -67,6 +66,8 @@ Untracked files:
6766

6867
### Specific Type
6968

69+
> **Note**: Lint types are listed in the ["Lint types"](#lint-types) section
70+
7071
If you believe that this new lint belongs to a specific type of lints,
7172
you can run `cargo dev new_lint` with a `--type` option.
7273

@@ -135,7 +136,7 @@ the lint pass in question will not be run.
135136

136137
## Lint types
137138

138-
As of the writing of this documentation update, there are 12 categories (a.k.a. _types_)
139+
As of the writing of this documentation update, there are 12 groups (a.k.a. _types_)
139140
of lints besides the numerous standalone lints living under `clippy_lints/src/`:
140141

141142
- `cargo`

0 commit comments

Comments
 (0)