Skip to content

Commit 91c8ecc

Browse files
committed
Auto merge of #10201 - MariaSolOs:patch-1, r=dswij
Add missing arguments to `new_lint` example of `cargo` lints changelog: Add missing arguments to `new_lint` code example. From the surrounding text, it seems like this code example is missing the arguments to create a new `cargo` lint.
2 parents 97fb130 + a7db925 commit 91c8ecc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/src/development/adding_lints.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ For cargo lints, the process of testing differs in that we are interested in the
146146
manifest.
147147

148148
If our new lint is named e.g. `foo_categories`, after running `cargo dev
149-
new_lint` we will find by default two new crates, each with its manifest file:
149+
new_lint --name=foo_categories --type=cargo --category=cargo` we will find by
150+
default two new crates, each with its manifest file:
150151

151152
* `tests/ui-cargo/foo_categories/fail/Cargo.toml`: this file should cause the
152153
new lint to raise an error.

0 commit comments

Comments
 (0)