Merge pull request #41 from hrls/patch-1

Update vec-drain.md
pull/42/head
Steve Klabnik 7 years ago committed by GitHub
commit b1908a1924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ struct Drain<'a, T: 'a> {
// Need to bound the lifetime here, so we do it with `&'a mut Vec<T>`
// because that's semantically what we contain. We're "just" calling
// `pop()` and `remove(0)`.
vec: PhantomData<&'a mut Vec<T>>
vec: PhantomData<&'a mut Vec<T>>,
start: *const T,
end: *const T,
}

Loading…
Cancel
Save