From b88155160cf4abc07a5b8da98385ac343a5eeca0 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 14 Sep 2020 21:08:08 +0800 Subject: [PATCH 1/2] Simplify iter flatten struct doc --- library/core/src/iter/adapters/flatten.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/iter/adapters/flatten.rs b/library/core/src/iter/adapters/flatten.rs index 4202e52448d..4b19c451a99 100644 --- a/library/core/src/iter/adapters/flatten.rs +++ b/library/core/src/iter/adapters/flatten.rs @@ -7,8 +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. +/// This `struct` is created by [`Iterator::flat_map`]. See its documentation +/// for more. /// /// [`flat_map`]: trait.Iterator.html#method.flat_map /// [`Iterator`]: trait.Iterator.html From 5112f879ff3c106dadc9d5699f471b06473cf7e0 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 15 Sep 2020 00:35:48 +0800 Subject: [PATCH 2/2] Remove flatten doc intra-doc links --- library/core/src/iter/adapters/flatten.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/core/src/iter/adapters/flatten.rs b/library/core/src/iter/adapters/flatten.rs index 4b19c451a99..ddb1aaebc1f 100644 --- a/library/core/src/iter/adapters/flatten.rs +++ b/library/core/src/iter/adapters/flatten.rs @@ -9,9 +9,6 @@ use super::Map; /// /// This `struct` is created by [`Iterator::flat_map`]. See its documentation /// for more. -/// -/// [`flat_map`]: trait.Iterator.html#method.flat_map -/// [`Iterator`]: trait.Iterator.html #[must_use = "iterators are lazy and do nothing unless consumed"] #[stable(feature = "rust1", since = "1.0.0")] pub struct FlatMap {