Skip to content

Commit 3727119

Browse files
committed
Add IntoIterator intra doc link to various collections
1 parent a8a829d commit 3727119

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

Diff for: library/alloc/src/collections/binary_heap.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1259,9 +1259,10 @@ impl<T> FusedIterator for Iter<'_, T> {}
12591259
/// An owning iterator over the elements of a `BinaryHeap`.
12601260
///
12611261
/// This `struct` is created by [`BinaryHeap::into_iter()`]
1262-
/// (provided by the `IntoIterator` trait). See its documentation for more.
1262+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
12631263
///
12641264
/// [`into_iter`]: BinaryHeap::into_iter
1265+
/// [`IntoIterator`]: core::iter::IntoIterator
12651266
#[stable(feature = "rust1", since = "1.0.0")]
12661267
#[derive(Clone)]
12671268
pub struct IntoIter<T> {

Diff for: library/alloc/src/collections/btree/map.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,10 @@ impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for IterMut<'_, K, V> {
326326
/// An owning iterator over the entries of a `BTreeMap`.
327327
///
328328
/// This `struct` is created by the [`into_iter`] method on [`BTreeMap`]
329-
/// (provided by the `IntoIterator` trait). See its documentation for more.
329+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
330330
///
331331
/// [`into_iter`]: IntoIterator::into_iter
332+
/// [`IntoIterator`]: core::iter::IntoIterator
332333
#[stable(feature = "rust1", since = "1.0.0")]
333334
pub struct IntoIter<K, V> {
334335
range: LazyLeafRange<marker::Dying, K, V>,

Diff for: library/alloc/src/collections/btree/set.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ impl<T: fmt::Debug> fmt::Debug for Iter<'_, T> {
107107
/// An owning iterator over the items of a `BTreeSet`.
108108
///
109109
/// This `struct` is created by the [`into_iter`] method on [`BTreeSet`]
110-
/// (provided by the `IntoIterator` trait). See its documentation for more.
110+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
111111
///
112112
/// [`into_iter`]: BTreeSet#method.into_iter
113+
/// [`IntoIterator`]: core::iter::IntoIterator
113114
#[stable(feature = "rust1", since = "1.0.0")]
114115
#[derive(Debug)]
115116
pub struct IntoIter<T> {

Diff for: library/alloc/src/collections/linked_list.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ impl<T: fmt::Debug> fmt::Debug for IterMut<'_, T> {
124124
/// An owning iterator over the elements of a `LinkedList`.
125125
///
126126
/// This `struct` is created by the [`into_iter`] method on [`LinkedList`]
127-
/// (provided by the `IntoIterator` trait). See its documentation for more.
127+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
128128
///
129129
/// [`into_iter`]: LinkedList::into_iter
130+
/// [`IntoIterator`]: core::iter::IntoIterator
130131
#[derive(Clone)]
131132
#[stable(feature = "rust1", since = "1.0.0")]
132133
pub struct IntoIter<T> {

Diff for: library/alloc/src/collections/vec_deque/into_iter.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ use super::VecDeque;
88
/// An owning iterator over the elements of a `VecDeque`.
99
///
1010
/// This `struct` is created by the [`into_iter`] method on [`VecDeque`]
11-
/// (provided by the `IntoIterator` trait). See its documentation for more.
11+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
1212
///
1313
/// [`into_iter`]: VecDeque::into_iter
14+
/// [`IntoIterator`]: core::iter::IntoIterator
1415
#[derive(Clone)]
1516
#[stable(feature = "rust1", since = "1.0.0")]
1617
pub struct IntoIter<

Diff for: library/std/src/collections/hash/map.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1257,9 +1257,10 @@ impl<'a, K, V> IterMut<'a, K, V> {
12571257
/// An owning iterator over the entries of a `HashMap`.
12581258
///
12591259
/// This `struct` is created by the [`into_iter`] method on [`HashMap`]
1260-
/// (provided by the `IntoIterator` trait). See its documentation for more.
1260+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
12611261
///
12621262
/// [`into_iter`]: IntoIterator::into_iter
1263+
/// [`IntoIterator`]: crate::iter::IntoIterator
12631264
///
12641265
/// # Example
12651266
///

Diff for: library/std/src/collections/hash/set.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1237,9 +1237,10 @@ pub struct Iter<'a, K: 'a> {
12371237
/// An owning iterator over the items of a `HashSet`.
12381238
///
12391239
/// This `struct` is created by the [`into_iter`] method on [`HashSet`]
1240-
/// (provided by the `IntoIterator` trait). See its documentation for more.
1240+
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
12411241
///
12421242
/// [`into_iter`]: IntoIterator::into_iter
1243+
/// [`IntoIterator`]: crate::iter::IntoIterator
12431244
///
12441245
/// # Examples
12451246
///

0 commit comments

Comments
 (0)