Improve doc on map_flatten

This commit is contained in:
Takayuki Nakata
2021-03-10 00:02:24 +09:00
parent 627e910fe5
commit e0f982bb3e
+1 -1
View File
@@ -403,7 +403,7 @@
}
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(_)`