Skip to content

Commit 39660c4

Browse files
joshlfRalfJung
andauthored
Update library/core/src/primitive_docs.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 4f0192a commit 39660c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

library/core/src/primitive_docs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,11 @@ mod prim_usize {}
13971397
/// which violates any of these properties.
13981398
///
13991399
/// * `t` is aligned to `align_of_val(t)`
1400-
/// * `t` refers to a single [allocated object]
1400+
/// * `t` is dereferenceable for `size_of_val(t)` many bytes
1401+
///
1402+
/// Being "dereferenceable" for N bytes means that the memory range beginning
1403+
/// at the address `t` points to and ending N bytes later is all contained within a
1404+
/// single [allocated object].
14011405
///
14021406
/// [allocated object]: ptr#allocated-object
14031407
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)