We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c28244 commit 36bb5e8Copy full SHA for 36bb5e8
library/core/src/mem/maybe_uninit.rs
@@ -336,8 +336,9 @@ impl<T> MaybeUninit<T> {
336
/// assert_eq!(x, (0, false));
337
/// ```
338
///
339
- /// *Incorrect* usage of this function: initializing a struct with zero, where some fields
340
- /// cannot hold 0 as a valid value.
+ /// *Incorrect* usage of this function: assuming zero filled memory is initialized,
+ /// where some fields cannot hold 0 as a valid value, without overwriting with a
341
+ /// valid bit-pattern.
342
343
/// ```rust,no_run
344
/// use std::mem::MaybeUninit;
0 commit comments