From e241d5a0930731e1d086a8dfdcc418c5ebd12dbf Mon Sep 17 00:00:00 2001 From: asquared31415 <34665709+asquared31415@users.noreply.github.com> Date: Tue, 26 Jul 2022 05:59:44 -0400 Subject: [PATCH] Make `transmute_copy` docs read better --- 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 6dc8563c421fc..234fa213da89f 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1000,7 +1000,7 @@ pub fn copy(x: &T) -> T { /// /// This function will unsafely assume the pointer `src` is valid for [`size_of::`][size_of] /// bytes by transmuting `&T` to `&U` and then reading the `&U` (except that this is done in a way -/// that is correct even when `&U` makes stricter alignment requirements than `&T`). It will also +/// that is correct even when `&U` has stricter alignment requirements than `&T`). It will also /// unsafely create a copy of the contained value instead of moving out of `src`. /// /// It is not a compile-time error if `T` and `U` have different sizes, but it