about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2021-10-12 09:42:42 +0200
committerGitHub <noreply@github.com>2021-10-12 09:42:42 +0200
commit5adf17cb43d62e7e02c13f32def548b724bf2148 (patch)
treec21101ae63fdddcdfe0a8b8debfc799f8328e06d
parent77dda9c6b176f6be55590f15b918d0883a3f3e9f (diff)
downloadrust-5adf17cb43d62e7e02c13f32def548b724bf2148.tar.gz
rust-5adf17cb43d62e7e02c13f32def548b724bf2148.zip
Bring `manual_split_once` docs in line with other lint docs
-rw-r--r--clippy_lints/src/methods/mod.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index b26d11c0d6b..26c29fbb289 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -1777,14 +1777,13 @@ declare_clippy_lint! {
 }
 
 declare_clippy_lint! {
-    /// **What it does:** Checks for usages of `str::splitn(2, _)`
-    ///
-    /// **Why is this bad?** `split_once` is both clearer in intent and slightly more efficient.
-    ///
-    /// **Known problems:** None.
+    /// ### What it does
+    /// Checks for usages of `str::splitn(2, _)`
     ///
-    /// **Example:**
+    /// ### Why is this bad?
+    /// `split_once` is both clearer in intent and slightly more efficient.
     ///
+    /// ### Example
     /// ```rust,ignore
     /// // Bad
     ///  let (key, value) = _.splitn(2, '=').next_tuple()?;