From d93599e39e706562b8fabebfb8cde94012ff3989 Mon Sep 17 00:00:00 2001 From: scottmcm Date: Mon, 28 Mar 2022 06:44:24 +0000 Subject: [PATCH] Update library/core/src/mem/mod.rs Apply suggestions from code review. Co-authored-by: kennytm --- library/core/src/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 334fa897b864..ec305efe19e1 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -678,7 +678,7 @@ pub unsafe fn uninitialized() -> T { } } -/// Create a fresh instance of the inhabited ZST type `T`. +/// Create a fresh instance of the inhabited zero-sized type `T`. /// /// Prefer this to [`zeroed`] or [`uninitialized`] or [`transmute_copy`] /// in places where you know that `T` is zero-sized, but don't have a bound