Skip to content

Commit 320ecb1

Browse files
committed
Mentioned inspect in lint description of suspicious_map
1 parent 7c82e78 commit 320ecb1

File tree

1 file changed

+3
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+3
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,9 @@ declare_clippy_lint! {
12841284
///
12851285
/// ### Why is this bad?
12861286
/// It looks suspicious. Maybe `map` was confused with `filter`.
1287-
/// If the `map` call is intentional, this should be rewritten. Or, if you intend to
1288-
/// drive the iterator to completion, you can just use `for_each` instead.
1287+
/// If the `map` call is intentional, this should be rewritten
1288+
/// using `inspect`. Or, if you intend to drive the iterator to
1289+
/// completion, you can just use `for_each` instead.
12891290
///
12901291
/// ### Example
12911292
/// ```rust

0 commit comments

Comments
 (0)