Skip to content

Commit 8564564

Browse files
zackmdavismark-i-m
authored andcommitted
mention lint-level command line flags as well as attributes
1 parent 2cb56f3 commit 8564564

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diag.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,5 @@ For example,
261261
```
262262

263263
This defines the `nonstandard_style` group which turns on the listed lints. A
264-
user can turn on these lints by using `!#[warn(nonstandard_style)]`.
264+
user can turn on these lints with a `!#[warn(nonstandard_style)]` attribute in
265+
the source code, or by passing `-W nonstandard-style` on the command line.

0 commit comments

Comments
 (0)