Skip to content

Commit

Permalink
[ needless_for_each ]: fix doc nits
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfield committed Jun 3, 2024
1 parent 942efe5 commit af73aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/needless_for_each.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ declare_clippy_lint! {
/// Use instead:
/// ```no_run
/// let v = vec![0, 1, 2];
/// for elem in v.iter() {
/// println!("{}", elem);
/// for elem in v {
/// println!("{elem}");
/// }
/// ```
///
Expand Down

0 comments on commit af73aeb

Please sign in to comment.