Fix typos “an”→“a” and a few different ones that appeared in the same search

This commit is contained in:
Frank Steffahn
2021-08-22 18:15:49 +02:00
parent 2396fad095
commit 2f9ddf3bc7
36 changed files with 43 additions and 43 deletions

View File

@@ -660,7 +660,7 @@ pub unsafe fn zeroed<T>() -> T {
#[rustc_diagnostic_item = "mem_uninitialized"]
#[track_caller]
pub unsafe fn uninitialized<T>() -> T {
// SAFETY: the caller must guarantee that an unitialized value is valid for `T`.
// SAFETY: the caller must guarantee that an uninitialized value is valid for `T`.
unsafe {
intrinsics::assert_uninit_valid::<T>();
MaybeUninit::uninit().assume_init()