File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3784,7 +3784,7 @@ declare_clippy_lint! {
3784
3784
///
3785
3785
/// ### Why is this bad?
3786
3786
///
3787
- /// Hard-coding the line endings makes the code less portable . `str.lines` should be used instead.
3787
+ /// Hard-coding the line endings makes the code less compatible . `str.lines` should be used instead.
3788
3788
///
3789
3789
/// ### Example
3790
3790
/// ```no_run
@@ -3793,6 +3793,11 @@ declare_clippy_lint! {
3793
3793
/// Use instead:
3794
3794
/// ```no_run
3795
3795
/// "some\ntext\nwith\nnewlines\n".lines();
3796
+ ///
3797
+ /// ### Known Problems
3798
+ ///
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.
3796
3801
/// ```
3797
3802
#[ clippy:: version = "1.76.0" ]
3798
3803
pub STR_SPLIT_AT_NEWLINE ,
You can’t perform that action at this time.
0 commit comments