]> git.lizzy.rs Git - rust.git/blobdiff - doc/adding_lints.md
Auto merge of #7873 - xFrednet:7869-string-index-ice, r=Manishearth
[rust.git] / doc / adding_lints.md
index 392b70ee3a963cf58ba1181944ee8b5e10e1d9b9..e0a9b27777aa47b4bb27c3580c25e0a7124c3b66 100644 (file)
@@ -556,7 +556,7 @@ directory. Adding a configuration to a lint can be useful for thresholds or to c
 behavior that can be seen as a false positive for some users. Adding a configuration is done
 in the following steps:
 
-1. Adding a new configuration entry to [clippy_utils::conf](/clippy_utils/src/conf.rs)
+1. Adding a new configuration entry to [clippy_lints::utils::conf](/clippy_lints/src/utils/conf.rs)
     like this:
     ```rust
     /// Lint: LINT_NAME.
@@ -564,7 +564,8 @@ in the following steps:
     /// <The configuration field doc comment>
     (configuration_ident: Type = DefaultValue),
     ```
-    The doc comment will be automatically added to the lint documentation.
+    The doc comment is automatically added to the documentation of the listed lints. The default
+    value will be formatted using the `Debug` implementation of the type.
 2. Adding the configuration value to the lint impl struct:
     1. This first requires the definition of a lint impl struct. Lint impl structs are usually
         generated with the `declare_lint_pass!` macro. This struct needs to be defined manually