Skip to content

Commit 5c97b27

Browse files
committed
Auto merge of #7808 - Veykril:patch-1, r=xFrednet
Bring [`manual_split_once`] docs in line with other lint docs changelog: none
2 parents 77dda9c + 5adf17c commit 5c97b27

File tree

1 file changed

+5
-6
lines changed
  • clippy_lints/src/methods

1 file changed

+5
-6
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,14 +1777,13 @@ declare_clippy_lint! {
17771777
}
17781778

17791779
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.
1780+
/// ### What it does
1781+
/// Checks for usages of `str::splitn(2, _)`
17851782
///
1786-
/// **Example:**
1783+
/// ### Why is this bad?
1784+
/// `split_once` is both clearer in intent and slightly more efficient.
17871785
///
1786+
/// ### Example
17881787
/// ```rust,ignore
17891788
/// // Bad
17901789
/// let (key, value) = _.splitn(2, '=').next_tuple()?;

0 commit comments

Comments
 (0)