about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-10 13:06:44 +0000
committerbors <bors@rust-lang.org>2023-06-10 13:06:44 +0000
commit9011c4d248cf7db69cf3ae24e1fbf233f526cfce (patch)
tree5963647cecd4998ea68150c163e53052a58ac663
parentd44ea7c5c5d51403baa6eeb0e3bbdb0a1ffeed1f (diff)
parentd1957b87c8e6345c1908f19a7be8efc266aa3ad5 (diff)
downloadrust-9011c4d248cf7db69cf3ae24e1fbf233f526cfce.tar.gz
rust-9011c4d248cf7db69cf3ae24e1fbf233f526cfce.zip
Auto merge of #10918 - Centri3:patch-2, r=xFrednet
Fix `excessive_nesting` example

whoops :sweat_smile:

changelog: none
-rw-r--r--clippy_lints/src/excessive_nesting.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/clippy_lints/src/excessive_nesting.rs b/clippy_lints/src/excessive_nesting.rs
index 1c6cd27789d..d04d833e630 100644
--- a/clippy_lints/src/excessive_nesting.rs
+++ b/clippy_lints/src/excessive_nesting.rs
@@ -24,8 +24,8 @@ declare_clippy_lint! {
     /// # clippy.toml
     /// excessive-nesting-threshold = 3
     /// ```
-    /// lib.rs:
     /// ```rust,ignore
+    /// // lib.rs
     /// pub mod a {
     ///     pub struct X;
     ///     impl X {
@@ -36,9 +36,10 @@ declare_clippy_lint! {
     ///         }
     ///     }
     /// }
+    /// ```
     /// Use instead:
-    /// a.rs:
     /// ```rust,ignore
+    /// // a.rs
     /// fn private_run(x: &X) {
     ///     if true {
     ///         // etc...
@@ -52,8 +53,8 @@ declare_clippy_lint! {
     ///     }
     /// }
     /// ```
-    /// lib.rs:
     /// ```rust,ignore
+    /// // lib.rs
     /// pub mod a;
     /// ```
     #[clippy::version = "1.70.0"]