Skip to content

Commit

Permalink
Rename the types for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt committed Aug 17, 2020
1 parent 55802e3 commit 68209c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/core/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@
//!
//! # Representation
//!
//! Rust guarantees to optimize the following types `<T>` such that an
//! Rust guarantees to optimize the following types `T` such that
//! [`Option<T>`] has the same size as `T`:
//!
//! * [`Box<T>`]
//! * `&T`
//! * `&mut T`
//! * [`Box<U>`]
//! * `&U`
//! * `&mut U`
//! * `fn`, `extern "C" fn`
//! * [`num::NonZero*`]
//! * [`ptr::NonNull<T>`]
//! * [`ptr::NonNull<U>`]
//! * `#[repr(transparent)]` struct around one of the types in this list.
//!
//! For the above cases, it is guaranteed that one can [`mem::transmute`]
Expand Down

0 comments on commit 68209c3

Please sign in to comment.