mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +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:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// iter.flat_map(|x| x)
|
/// # let iter = vec![vec![0]].into_iter();
|
||||||
|
/// iter.flat_map(|x| x);
|
||||||
/// ```
|
/// ```
|
||||||
/// Can be written as
|
/// Can be written as
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// iter.flatten()
|
/// # let iter = vec![vec![0]].into_iter();
|
||||||
|
/// iter.flatten();
|
||||||
/// ```
|
/// ```
|
||||||
pub FLAT_MAP_IDENTITY,
|
pub FLAT_MAP_IDENTITY,
|
||||||
pedantic,
|
pedantic,
|
||||||
|
|
Loading…
Add table
Reference in a new issue