1
Fork 0

Change notation.

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Laurence Tratt 2020-08-12 15:19:46 +00:00 committed by GitHub
commit 8cb8955d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,8 +84,8 @@
//! * `#[repr(transparent)]` struct around one of the types in this list. //! * `#[repr(transparent)]` struct around one of the types in this list.
//! //!
//! For the above cases, it is guaranteed that one can [`mem::transmute`] //! For the above cases, it is guaranteed that one can [`mem::transmute`]
//! from all valid values of `T` to `Option<T>` but only from //! from all valid values of `T` to `Option<T>` and from
//! `Option::Some(T)` to `T` (i.e. transmuting `None` to `<T>` is undefined //! `Some::<T>(_)` to `T` (but transmuting `None::<T>` to `T` is undefined
//! behaviour). //! behaviour).
//! //!
//! # Examples //! # Examples