We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a94cf commit 6f27001Copy full SHA for 6f27001
clippy_lints/src/trivial_map_over_range.rs
@@ -24,7 +24,7 @@ declare_clippy_lint! {
24
/// ```
25
/// Use instead:
26
/// ```no_run
27
- /// let f : Vec<_> = std::iter::from_fn(|| { 3 + 1 }).take(10).collect();
+ /// let f : Vec<_> = std::iter::repeat_with(|| { 3 + 1 }).take(10).collect();
28
29
#[clippy::version = "1.81.0"]
30
pub TRIVIAL_MAP_OVER_RANGE,
0 commit comments