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 55802e3 commit 68209c3Copy full SHA for 68209c3
library/core/src/option.rs
@@ -72,15 +72,15 @@
72
//!
73
//! # Representation
74
75
-//! Rust guarantees to optimize the following types `<T>` such that an
+//! Rust guarantees to optimize the following types `T` such that
76
//! [`Option<T>`] has the same size as `T`:
77
78
-//! * [`Box<T>`]
79
-//! * `&T`
80
-//! * `&mut T`
+//! * [`Box<U>`]
+//! * `&U`
+//! * `&mut U`
81
//! * `fn`, `extern "C" fn`
82
//! * [`num::NonZero*`]
83
-//! * [`ptr::NonNull<T>`]
+//! * [`ptr::NonNull<U>`]
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`]
0 commit comments