Update rustdoc

This commit is contained in:
Jeremy Stucki 2019-08-11 22:18:58 +02:00
parent 5fd7d44f36
commit df9063013e
No known key found for this signature in database
GPG key ID: EEFCA93148042655

View file

@ -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,