about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkoka <koka.code@gmail.com>2023-01-29 02:54:26 +0900
committerkoka <koka.code@gmail.com>2023-01-29 02:54:26 +0900
commit25d455bd1728ba28c5cf6a0e044f2194a7d4d2ca (patch)
tree33fd34d8e8f854d99bb92b2428483afb7ea273e9
parente791522d35bf33a9008c367902ccaf3387325968 (diff)
downloadrust-25d455bd1728ba28c5cf6a0e044f2194a7d4d2ca.tar.gz
rust-25d455bd1728ba28c5cf6a0e044f2194a7d4d2ca.zip
fix: add missing dot to suppress_restriction_lint_in_const
-rw-r--r--book/src/lint_configuration.md2
-rw-r--r--clippy_lints/src/utils/conf.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/book/src/lint_configuration.md b/book/src/lint_configuration.md
index 9f7cf9a6163..32a2b44392d 100644
--- a/book/src/lint_configuration.md
+++ b/book/src/lint_configuration.md
@@ -526,7 +526,7 @@ Whether to allow mixed uninlined format args, e.g. `format!("{} {}", a, foo.bar)
 
 
 ### suppress-restriction-lint-in-const
-In same
+Whether to suppress a restriction lint in constant code. In same
 cases the restructured operation might not be unavoidable, as the
 suggested counterparts are unavailable in constant code. This
 configuration will cause restriction lints to trigger even
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs
index f7a35dc798e..f8a5b5547de 100644
--- a/clippy_lints/src/utils/conf.rs
+++ b/clippy_lints/src/utils/conf.rs
@@ -446,7 +446,7 @@ define_Conf! {
     ///
     /// Whether to allow mixed uninlined format args, e.g. `format!("{} {}", a, foo.bar)`
     (allow_mixed_uninlined_format_args: bool = true),
-    /// Lint: INDEXING_SLICING
+    /// Lint: INDEXING_SLICING.
     ///
     /// Whether to suppress a restriction lint in constant code. In same
     /// cases the restructured operation might not be unavoidable, as the