Skip to content

Commit ffb0951

Browse files
committed
Update config contributing docs
1 parent 4998130 commit ffb0951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/adding_lints.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ in `clippy_lints/src/utils/conf.rs`:
454454
```rust
455455
define_Conf! {
456456
/// Lint: LIST, OF, LINTS, <THE_NEWLY_ADDED_LINT>. The minimum rust version that the project supports
457-
(msrv, "msrv": Option<String>, None),
457+
(msrv: Option<String> = None),
458458
...
459459
}
460460
```
@@ -562,7 +562,7 @@ in the following steps:
562562
like this:
563563
```rust
564564
/// Lint: LINT_NAME. <The configuration field doc comment>
565-
(configuration_ident, "configuration_value": Type, DefaultValue),
565+
(configuration_ident: Type = DefaultValue),
566566
```
567567
The configuration value and identifier should usually be the same. The doc comment will be
568568
automatically added to the lint documentation.

0 commit comments

Comments
 (0)