mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Typo fix
Thanks, Amanieu Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
@@ -2813,7 +2813,7 @@ fn from(s: &str) -> Vec<u8> {
|
||||
// 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`
|
||||
|
||||
Reference in New Issue
Block a user