mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Update rustdoc
This commit is contained in:
parent
5fd7d44f36
commit
df9063013e
1 changed files with 4 additions and 2 deletions
|
@ -351,11 +351,13 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// **Example:**
|
||||
/// ```rust
|
||||
/// iter.flat_map(|x| x)
|
||||
/// # let iter = vec![vec![0]].into_iter();
|
||||
/// iter.flat_map(|x| x);
|
||||
/// ```
|
||||
/// Can be written as
|
||||
/// ```rust
|
||||
/// iter.flatten()
|
||||
/// # let iter = vec![vec![0]].into_iter();
|
||||
/// iter.flatten();
|
||||
/// ```
|
||||
pub FLAT_MAP_IDENTITY,
|
||||
pedantic,
|
||||
|
|
Loading…
Reference in a new issue