]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/neg_multiply.rs
Auto merge of #85020 - lrh2000:named-upvars, r=tmandry
[rust.git] / src / tools / clippy / clippy_lints / src / neg_multiply.rs
index d5e1ea6d242deb787074e85963d050e3c947860f..fa36d8fb1b30f3f50ee2793d5a9db68b9d70edc9 100644 (file)
@@ -7,13 +7,16 @@
 use rustc_span::source_map::Span;
 
 declare_clippy_lint! {
-    /// **What it does:** Checks for multiplication by -1 as a form of negation.
+    /// ### What it does
+    /// Checks for multiplication by -1 as a form of negation.
     ///
-    /// **Why is this bad?** It's more readable to just negate.
+    /// ### Why is this bad?
+    /// It's more readable to just negate.
     ///
-    /// **Known problems:** This only catches integers (for now).
+    /// ### Known problems
+    /// This only catches integers (for now).
     ///
-    /// **Example:**
+    /// ### Example
     /// ```ignore
     /// x * -1
     /// ```