Skip to content

Commit

Permalink
Fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
rspencer01 committed Jul 3, 2024
1 parent 91a94cf commit 6f27001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/trivial_map_over_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare_clippy_lint! {
/// ```
/// Use instead:
/// ```no_run
/// let f : Vec<_> = std::iter::from_fn(|| { 3 + 1 }).take(10).collect();
/// let f : Vec<_> = std::iter::repeat_with(|| { 3 + 1 }).take(10).collect();
/// ```
#[clippy::version = "1.81.0"]
pub TRIVIAL_MAP_OVER_RANGE,
Expand Down

0 comments on commit 6f27001

Please sign in to comment.