Skip to content

Commit 8959374

Browse files
Rollup merge of #34818 - frewsxcv:vecdoc, r=GuillaumeGomez
Mention where `std::vec` structs originate from. None
2 parents 1544ebe + cf21a7b commit 8959374

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/libcollections/vec.rs

+11
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,12 @@ impl<'a, T> FromIterator<T> for Cow<'a, [T]> where T: Clone {
16031603
////////////////////////////////////////////////////////////////////////////////
16041604

16051605
/// An iterator that moves out of a vector.
1606+
///
1607+
/// This `struct` is created by the `into_iter` method on [`Vec`][`Vec`] (provided
1608+
/// by the [`IntoIterator`] trait).
1609+
///
1610+
/// [`Vec`]: struct.Vec.html
1611+
/// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html
16061612
#[stable(feature = "rust1", since = "1.0.0")]
16071613
pub struct IntoIter<T> {
16081614
_buf: RawVec<T>,
@@ -1710,6 +1716,11 @@ impl<T> Drop for IntoIter<T> {
17101716
}
17111717

17121718
/// A draining iterator for `Vec<T>`.
1719+
///
1720+
/// This `struct` is created by the [`drain`] method on [`Vec`].
1721+
///
1722+
/// [`drain`]: struct.Vec.html#method.drain
1723+
/// [`Vec`]: struct.Vec.html
17131724
#[stable(feature = "drain", since = "1.6.0")]
17141725
pub struct Drain<'a, T: 'a> {
17151726
/// Index of tail to preserve

0 commit comments

Comments
 (0)