Skip to content

Commit 2b781c9

Browse files
committed
Auto merge of #6876 - giraffate:improve_doc_on_map_flatten, r=flip1995
Improve doc on `map_flatten` Fix rust-lang/rust-clippy#6870. It's because this doc lacks the description that this lint is also used for `Option`. changelog: none
2 parents 8a5f98a + e0f982b commit 2b781c9

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ declare_clippy_lint! {
403403
}
404404

405405
declare_clippy_lint! {
406-
/// **What it does:** Checks for usage of `_.map(_).flatten(_)`,
406+
/// **What it does:** Checks for usage of `_.map(_).flatten(_)` on `Iterator` and `Option`
407407
///
408408
/// **Why is this bad?** Readability, this can be written more concisely as
409409
/// `_.flat_map(_)`

0 commit comments

Comments
 (0)