We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77dda9c + 5adf17c commit 5c97b27Copy full SHA for 5c97b27
clippy_lints/src/methods/mod.rs
@@ -1777,14 +1777,13 @@ declare_clippy_lint! {
1777
}
1778
1779
declare_clippy_lint! {
1780
- /// **What it does:** Checks for usages of `str::splitn(2, _)`
1781
- ///
1782
- /// **Why is this bad?** `split_once` is both clearer in intent and slightly more efficient.
1783
1784
- /// **Known problems:** None.
+ /// ### What it does
+ /// Checks for usages of `str::splitn(2, _)`
1785
///
1786
- /// **Example:**
+ /// ### Why is this bad?
+ /// `split_once` is both clearer in intent and slightly more efficient.
1787
+ /// ### Example
1788
/// ```rust,ignore
1789
/// // Bad
1790
/// let (key, value) = _.splitn(2, '=').next_tuple()?;
0 commit comments