1
Fork 0

fix typo in library/alloc/src/vec/mod.rs

Co-authored-by: the8472 <the8472@users.noreply.github.com>
This commit is contained in:
Waffle Lapkin 2021-02-03 13:53:58 +03:00 committed by GitHub
parent cd6dad641c
commit 476a57a628
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1828,7 +1828,7 @@ impl<T, A: Allocator> Vec<T, A> {
self.split_at_spare_mut().1 self.split_at_spare_mut().1
} }
/// Returns vector content as a slice of `T`, among with the remaining spare /// Returns vector content as a slice of `T`, along with the remaining spare
/// capacity of the vector as a slice of `MaybeUninit<T>`. /// capacity of the vector as a slice of `MaybeUninit<T>`.
/// ///
/// The returned spare capacity slice can be used to fill the vector with data /// The returned spare capacity slice can be used to fill the vector with data