Co-authored-by: kennytm <kennytm@gmail.com>
This commit is contained in:
Ralf Jung 2021-04-04 19:32:54 +02:00 committed by GitHub
parent 5d1747bf07
commit b577d7ef25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1545,7 +1545,7 @@ fnptr_impls_args! { A, B, C, D, E, F, G, H, I, J, K, L }
/// assert_eq!(unsafe { raw_f2.read_unaligned() }, 2); /// assert_eq!(unsafe { raw_f2.read_unaligned() }, 2);
/// ``` /// ```
/// ///
/// See [`addr_of_mut`] for how to create a pointer to ininitialized data. /// See [`addr_of_mut`] for how to create a pointer to unininitialized data.
/// Doing that with `addr_of` would not make much sense since one could only /// Doing that with `addr_of` would not make much sense since one could only
/// read the data, and that would be Undefined Behavior. /// read the data, and that would be Undefined Behavior.
#[stable(feature = "raw_ref_macros", since = "1.51.0")] #[stable(feature = "raw_ref_macros", since = "1.51.0")]