Add more info for Vec Drain doc

See its documentation for more
This commit is contained in:
Ivan Tham 2020-08-29 18:25:17 +08:00 committed by GitHub
parent 1dc748fb3d
commit ba4c498816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2785,6 +2785,7 @@ fn drop(&mut self) {
/// 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