Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Typo fix
Thanks, Amanieu

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
  • Loading branch information
scottmcm and Amanieu committed Sep 7, 2020
1 parent 2c8a4c8 commit 3d89ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec.rs
Expand Up @@ -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`
Expand Down

0 comments on commit 3d89ee9

Please sign in to comment.