Skip to content

Commit 8d3a47e

Browse files
authored
Clarify provenance
1 parent 05e6a34 commit 8d3a47e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/mem/maybe_uninit.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,8 @@ use crate::{fmt, intrinsics, ptr, slice};
285285
/// # Provenance
286286
///
287287
/// `MaybeUninit` values may contain [pointer provenance][provenance]. Concretely, for any
288-
/// pointer type, `P`, which contains provenance, transmuting `p: P` to
289-
/// `MaybeUninit<[u8; size_of::<P>]>` and then back to `P` will produce a value identical to
290-
/// `p`, including provenance.
288+
/// value, `p: P`, which contains provenance, transmuting `p` to `MaybeUninit<[u8; size_of::<P>]>`
289+
/// and then back to `P` will produce a value identical to `p`, including provenance.
291290
///
292291
/// [provenance]: ../ptr/index.html#provenance
293292
#[stable(feature = "maybe_uninit", since = "1.36.0")]

0 commit comments

Comments
 (0)