Skip to content

Commit e0f982b

Browse files
committed
Improve doc on map_flatten
1 parent 627e910 commit e0f982b

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)