diff options
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index 7732525a0fc..b76ad7ceec9 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -336,8 +336,9 @@ impl<T> MaybeUninit<T> { /// assert_eq!(x, (0, false)); /// ``` /// - /// *Incorrect* usage of this function: initializing a struct with zero, where some fields - /// 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 + /// valid bit-pattern. /// /// ```rust,no_run /// use std::mem::MaybeUninit; |
