Thanks, Amanieu

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
scottmcm 2020-09-07 02:30:42 +00:00 committed by GitHub
parent 2c8a4c8f73
commit 3d89ee9586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2813,7 +2813,7 @@ impl<T, const N: usize> TryFrom<Vec<T>> for [T; N] {
// SAFETY: `.set_len(0)` is always sound.
unsafe { vec.set_len(0) };
// SAFETY: A `Vec`'s pointer is always aligned property, and
// SAFETY: A `Vec`'s pointer is always aligned properly, and
// the alignment the array needs is the same as the items.
// We checked earlier that we have sufficient items.
// The items will not double-drop as the `set_len`