Skip to content

Commit d2a52b9

Browse files
committed
Intra doc links for iterator adapters
1 parent b0e0d1b commit d2a52b9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/src/iter/adapters/flatten.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ where
120120
/// This `struct` is created by the [`flatten`] method on [`Iterator`]. See its
121121
/// documentation for more.
122122
///
123-
/// [`flatten`]: Iterator::flatten
124-
/// [`Iterator`]: trait.Iterator.html
123+
/// [`flatten`]: Iterator::flatten()
125124
#[must_use = "iterators are lazy and do nothing unless consumed"]
126125
#[stable(feature = "iterator_flatten", since = "1.29.0")]
127126
pub struct Flatten<I: Iterator<Item: IntoIterator>> {

core/src/iter/adapters/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub unsafe trait SourceIter {
110110
/// * whatever remains in the source after iteration has stopped
111111
/// * the memory that has become unused by advancing a consuming iterator
112112
///
113-
/// [`next()`]: Iterator::next
113+
/// [`next()`]: Iterator::next()
114114
unsafe fn as_inner(&mut self) -> &mut Self::Source;
115115
}
116116

0 commit comments

Comments
 (0)