Skip to content

Commit

Permalink
8733: Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
torfsen committed Dec 19, 2023
1 parent 88a6c9d commit ee170c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/splitting_strings_at_newlines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ declare_clippy_lint! {
///
/// ### Example
/// ```no_run
/// "some\ntext\nwith\nnewlines\n".trim().split('\n')
/// "some\ntext\nwith\nnewlines\n".trim().split('\n');
/// ```
/// Use instead:
/// ```no_run
/// "some\ntext\nwith\nnewlines\n".lines()
/// "some\ntext\nwith\nnewlines\n".lines();
/// ```
#[clippy::version = "1.76.0"]
pub SPLITTING_STRINGS_AT_NEWLINES,
Expand Down

0 comments on commit ee170c1

Please sign in to comment.