Skip to content

Commit 21fab26

Browse files
committed
8733: Fix newline literals in docs
1 parent f877fa5 commit 21fab26

File tree

1 file changed

+3
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+3
-2
lines changed

clippy_lints/src/methods/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -3796,8 +3796,9 @@ declare_clippy_lint! {
37963796
///
37973797
/// ### Known Problems
37983798
///
3799-
/// This lint cannot detect if the split is intentionally restricted to a single type of newline (`\n` or `\r\n`),
3800-
/// for example during the parsing of a specific file format in which precisely one newline type is valid.
3799+
/// This lint cannot detect if the split is intentionally restricted to a single type of newline (`"\n"` or
3800+
/// `"\r\n"`), for example during the parsing of a specific file format in which precisely one newline type is
3801+
/// valid.
38013802
/// ```
38023803
#[clippy::version = "1.76.0"]
38033804
pub STR_SPLIT_AT_NEWLINE,

0 commit comments

Comments
 (0)