Skip to content

Commit 8cb8955

Browse files
ltrattRalfJung
andauthored
Change notation.
Co-authored-by: Ralf Jung <[email protected]>
1 parent f3d7196 commit 8cb8955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
//! * `#[repr(transparent)]` struct around one of the types in this list.
8585
//!
8686
//! 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
88-
//! `Option::Some(T)` to `T` (i.e. transmuting `None` to `<T>` is undefined
87+
//! from all valid values of `T` to `Option<T>` and from
88+
//! `Some::<T>(_)` to `T` (but transmuting `None::<T>` to `T` is undefined
8989
//! behaviour).
9090
//!
9191
//! # Examples

0 commit comments

Comments
 (0)