about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-16 12:34:23 +0200
committerGitHub <noreply@github.com>2020-09-16 12:34:23 +0200
commit9524fffce3d1850693589c7f115e41df319e63e6 (patch)
tree390bb3917bb5f9ab1d8bad2733b0d8671a7e2e71
parent3f9e7fc0497a08983078cbe987af79f131da6419 (diff)
parent5112f879ff3c106dadc9d5699f471b06473cf7e0 (diff)
downloadrust-9524fffce3d1850693589c7f115e41df319e63e6.tar.gz
rust-9524fffce3d1850693589c7f115e41df319e63e6.zip
Rollup merge of #76707 - pickfire:patch-4, r=jonas-schievink
Simplify iter flatten struct doc
-rw-r--r--library/core/src/iter/adapters/flatten.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/library/core/src/iter/adapters/flatten.rs b/library/core/src/iter/adapters/flatten.rs
index 4202e52448d..ddb1aaebc1f 100644
--- a/library/core/src/iter/adapters/flatten.rs
+++ b/library/core/src/iter/adapters/flatten.rs
@@ -7,11 +7,8 @@ use super::Map;
 /// An iterator that maps each element to an iterator, and yields the elements
 /// of the produced iterators.
 ///
-/// This `struct` is created by the [`flat_map`] method on [`Iterator`]. See its
-/// documentation for more.
-///
-/// [`flat_map`]: trait.Iterator.html#method.flat_map
-/// [`Iterator`]: trait.Iterator.html
+/// This `struct` is created by [`Iterator::flat_map`]. See its documentation
+/// for more.
 #[must_use = "iterators are lazy and do nothing unless consumed"]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct FlatMap<I, U: IntoIterator, F> {