Skip to content

Commit

Permalink
Auto merge of rust-lang#6876 - giraffate:improve_doc_on_map_flatten, …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
bors committed Mar 9, 2021
2 parents 8a5f98a + e0f982b commit 2b781c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ declare_clippy_lint! {
}

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

0 comments on commit 2b781c9

Please sign in to comment.