Skip to content

Commit 68209c3

Browse files
committed
Rename the types for clarity.
1 parent 55802e3 commit 68209c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/core/src/option.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@
7272
//!
7373
//! # Representation
7474
//!
75-
//! Rust guarantees to optimize the following types `<T>` such that an
75+
//! Rust guarantees to optimize the following types `T` such that
7676
//! [`Option<T>`] has the same size as `T`:
7777
//!
78-
//! * [`Box<T>`]
79-
//! * `&T`
80-
//! * `&mut T`
78+
//! * [`Box<U>`]
79+
//! * `&U`
80+
//! * `&mut U`
8181
//! * `fn`, `extern "C" fn`
8282
//! * [`num::NonZero*`]
83-
//! * [`ptr::NonNull<T>`]
83+
//! * [`ptr::NonNull<U>`]
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`]

0 commit comments

Comments
 (0)