Skip to content

Commit

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

Co-authored-by: Amanieu d'Antras <[email protected]>
  • Loading branch information
scottmcm and Amanieu authored 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
Original file line number Diff line number Diff line change
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.