From b702060865d7a21b4ada16434b8e80e1c203f409 Mon Sep 17 00:00:00 2001 From: Alexis Bourget Date: Tue, 13 Oct 2020 00:52:13 +0200 Subject: [PATCH] Intra doc links for iterator adapters --- Cargo.lock | 2 +- library/core/src/iter/adapters/flatten.rs | 3 +-- library/core/src/iter/adapters/mod.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 18dfe890a0c..ae3a16b52b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5256,7 +5256,7 @@ dependencies = [ "chrono", "lazy_static", "matchers", - "parking_lot 0.11.0", + "parking_lot 0.9.0", "regex", "serde", "serde_json", diff --git a/library/core/src/iter/adapters/flatten.rs b/library/core/src/iter/adapters/flatten.rs index ff85e114dc9..29e191db0f6 100644 --- a/library/core/src/iter/adapters/flatten.rs +++ b/library/core/src/iter/adapters/flatten.rs @@ -120,8 +120,7 @@ impl FusedIterator for FlatMap /// This `struct` is created by the [`flatten`] method on [`Iterator`]. See its /// documentation for more. /// -/// [`flatten`]: Iterator::flatten -/// [`Iterator`]: trait.Iterator.html +/// [`flatten`]: Iterator::flatten() #[must_use = "iterators are lazy and do nothing unless consumed"] #[stable(feature = "iterator_flatten", since = "1.29.0")] pub struct Flatten> { diff --git a/library/core/src/iter/adapters/mod.rs b/library/core/src/iter/adapters/mod.rs index 5ef5717085e..b8d3430f910 100644 --- a/library/core/src/iter/adapters/mod.rs +++ b/library/core/src/iter/adapters/mod.rs @@ -110,7 +110,7 @@ pub unsafe trait SourceIter { /// * whatever remains in the source after iteration has stopped /// * the memory that has become unused by advancing a consuming iterator /// - /// [`next()`]: Iterator::next + /// [`next()`]: Iterator::next() unsafe fn as_inner(&mut self) -> &mut Self::Source; } -- 2.44.0