mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Improve doc on map_flatten
This commit is contained in:
@@ -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(_)`
|
||||
|
||||
Reference in New Issue
Block a user