Skip to content

Commit

Permalink
Update config contributing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
camsteffen committed May 3, 2021
1 parent 4998130 commit ffb0951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/adding_lints.md
Expand Up @@ -454,7 +454,7 @@ in `clippy_lints/src/utils/conf.rs`:
```rust
define_Conf! {
/// Lint: LIST, OF, LINTS, <THE_NEWLY_ADDED_LINT>. The minimum rust version that the project supports
(msrv, "msrv": Option<String>, None),
(msrv: Option<String> = None),
...
}
```
Expand Down Expand Up @@ -562,7 +562,7 @@ in the following steps:
like this:
```rust
/// Lint: LINT_NAME. <The configuration field doc comment>
(configuration_ident, "configuration_value": Type, DefaultValue),
(configuration_ident: Type = DefaultValue),
```
The configuration value and identifier should usually be the same. The doc comment will be
automatically added to the lint documentation.
Expand Down

0 comments on commit ffb0951

Please sign in to comment.