about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-26 16:57:52 +0200
committerGitHub <noreply@github.com>2022-07-26 16:57:52 +0200
commita739e28aeadad70107866ad09df3115f67695b2d (patch)
treef0353b9d4cdce5a0cccb07f9777348486c6bc4cd
parentddb6a463167aac560279ed746f276ef29f86250e (diff)
parente241d5a0930731e1d086a8dfdcc418c5ebd12dbf (diff)
downloadrust-a739e28aeadad70107866ad09df3115f67695b2d.tar.gz
rust-a739e28aeadad70107866ad09df3115f67695b2d.zip
Rollup merge of #99757 - asquared31415:patch-1, r=Dylan-DPC
Make `transmute_copy` docs read better
-rw-r--r--library/core/src/mem/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs
index 6dc8563c421..234fa213da8 100644
--- a/library/core/src/mem/mod.rs
+++ b/library/core/src/mem/mod.rs
@@ -1000,7 +1000,7 @@ pub fn copy<T: Copy>(x: &T) -> T {
 ///
 /// This function will unsafely assume the pointer `src` is valid for [`size_of::<U>`][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