File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ use crate::ptr;
39
39
/// let b: bool = unsafe { MaybeUninit::uninit().assume_init() }; // undefined behavior! ⚠️
40
40
/// ```
41
41
///
42
- /// Moreover, uninitialized memory is special in that the compiler knows that
43
- /// it does not have a fixed value. This makes it undefined behavior to have
44
- /// uninitialized data in a variable even if that variable has an integer type,
45
- /// which otherwise can hold any *fixed* bit pattern:
42
+ /// Moreover, uninitialized memory is special in that it does not have a fixed value ("fixed"
43
+ /// meaning "it won't change without being written to"). Reading the same uninitialized byte
44
+ /// multiple times can give different results. This makes it undefined behavior to have
45
+ /// uninitialized data in a variable even if that variable has an integer type, which otherwise can
46
+ /// hold any *fixed* bit pattern:
46
47
///
47
48
/// ```rust,no_run
48
49
/// # #![allow(invalid_value)]
You can’t perform that action at this time.
0 commit comments