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 83f47aa commit f3d7196Copy full SHA for f3d7196
library/core/src/option.rs
@@ -84,8 +84,9 @@
84
//! * `#[repr(transparent)]` struct around one of the types in this list.
85
//!
86
//! For the above cases, it is guaranteed that one can [`mem::transmute`]
87
-//! from all valid values of `T` to `Option<T>` but only from non-`None`
88
-//! Option<T>` to `T`.
+//! from all valid values of `T` to `Option<T>` but only from
+//! `Option::Some(T)` to `T` (i.e. transmuting `None` to `<T>` is undefined
89
+//! behaviour).
90
91
//! # Examples
92
0 commit comments