about summary refs log tree commit diff
diff options
context:
space:
mode:
authorasquared31415 <34665709+asquared31415@users.noreply.github.com>2022-07-26 05:59:44 -0400
committerGitHub <noreply@github.com>2022-07-26 05:59:44 -0400
commite241d5a0930731e1d086a8dfdcc418c5ebd12dbf (patch)
treef43e7885d4f7865e7c291f95ca23e1438bbd114c
parentb629c85bd74dfb730a3e9308312b007c0bf027cb (diff)
downloadrust-e241d5a0930731e1d086a8dfdcc418c5ebd12dbf.tar.gz
rust-e241d5a0930731e1d086a8dfdcc418c5ebd12dbf.zip
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