1
Fork 0

Rollup merge of #76056 - pickfire:patch-10, r=jyn514

Add more info for Vec Drain doc

See its documentation for more
This commit is contained in:
Ralf Jung 2020-09-16 08:24:40 +02:00 committed by GitHub
commit 73858d01c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3037,6 +3037,7 @@ impl<T> AsIntoIter for IntoIter<T> {
/// A draining iterator for `Vec<T>`.
///
/// This `struct` is created by [`Vec::drain`].
/// See its documentation for more.
#[stable(feature = "drain", since = "1.6.0")]
pub struct Drain<'a, T: 'a> {
/// Index of tail to preserve