about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2020-12-14 13:50:53 -0600
committerCameron Steffen <cam.steffen94@gmail.com>2021-01-21 18:17:25 -0600
commite89ad4ba71816cbe6fb1f90743d9229fc824b1c0 (patch)
tree54f4dc54ca16da1e63d692d5fa00503370a12370
parent043cf97abc51bdb6df728d57957f1d194d988475 (diff)
downloadrust-e89ad4ba71816cbe6fb1f90743d9229fc824b1c0.tar.gz
rust-e89ad4ba71816cbe6fb1f90743d9229fc824b1c0.zip
Fix comment
-rw-r--r--clippy_lints/src/methods/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index 623554ea2d1..c8b69f4fbae 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -3059,7 +3059,7 @@ fn lint_filter_map_map<'tcx>(
     _filter_args: &'tcx [hir::Expr<'_>],
     _map_args: &'tcx [hir::Expr<'_>],
 ) {
-    // lint if caller of `.filter().map()` is an Iterator
+    // lint if caller of `.filter_map().map()` is an Iterator
     if match_trait_method(cx, expr, &paths::ITERATOR) {
         let msg = "called `filter_map(..).map(..)` on an `Iterator`";
         let hint = "this is more succinctly expressed by only calling `.filter_map(..)` instead";