Skip to content

Commit d93599e

Browse files
scottmcmkennytm
andauthored
Update library/core/src/mem/mod.rs
Apply suggestions from code review. Co-authored-by: kennytm <[email protected]>
1 parent 3563842 commit d93599e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ pub unsafe fn uninitialized<T>() -> T {
678678
}
679679
}
680680

681-
/// Create a fresh instance of the inhabited ZST type `T`.
681+
/// Create a fresh instance of the inhabited zero-sized type `T`.
682682
///
683683
/// Prefer this to [`zeroed`] or [`uninitialized`] or [`transmute_copy`]
684684
/// in places where you know that `T` is zero-sized, but don't have a bound

0 commit comments

Comments
 (0)