Skip to content

Commit 1a0309a

Browse files
authored
Update primitive_docs.rs
1 parent 55487e2 commit 1a0309a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/core/src/primitive_docs.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,8 +1393,9 @@ mod prim_usize {}
13931393
/// # Safety
13941394
///
13951395
/// For all types, `T: ?Sized`, and for all `t: &T` or `t: &mut T`, unsafe code may assume that
1396-
/// the following properties hold. It is undefined behavior to produce a `t: &T` or `t: &mut T`
1397-
/// which violates any of these properties.
1396+
/// the following properties hold. Rust programmers must assume that, unless explicitly stated
1397+
/// otherwise, any Rust code they did not author themselves may rely on these properties, and that
1398+
/// violating them may cause that code to exhibit undefined behavior.
13981399
///
13991400
/// * `t` is aligned to `align_of_val(t)`
14001401
/// * `t` is dereferenceable for `size_of_val(t)` many bytes

0 commit comments

Comments
 (0)