Update library/core/src/primitive_docs.rs

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Joshua Liebow-Feeser 2023-10-13 09:47:39 -07:00 committed by GitHub
parent 4f0192a756
commit 39660c4a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1397,7 +1397,11 @@ mod prim_usize {}
/// which violates any of these properties.
///
/// * `t` is aligned to `align_of_val(t)`
/// * `t` refers to a single [allocated object]
/// * `t` is dereferenceable for `size_of_val(t)` many bytes
///
/// Being "dereferenceable" for N bytes means that the memory range beginning
/// at the address `t` points to and ending N bytes later is all contained within a
/// single [allocated object].
///
/// [allocated object]: ptr#allocated-object
#[stable(feature = "rust1", since = "1.0.0")]