Skip to content

Commit 22668e8

Browse files
committed
1 parent 939f267 commit 22668e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/option.rs

+3
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,13 @@
137137
//!
138138
//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
139139
//!
140+
//! Under some conditions the above types `T` are also null pointer optimized when wrapped in a [`Result`][result_repr].
141+
//!
140142
//! [`Box<U>`]: ../../std/boxed/struct.Box.html
141143
//! [`num::NonZero*`]: crate::num
142144
//! [`ptr::NonNull<U>`]: crate::ptr::NonNull
143145
//! [function call ABI]: ../primitive.fn.html#abi-compatibility
146+
//! [result_repr]: crate::result::Result#Representation
144147
//!
145148
//! This is called the "null pointer optimization" or NPO.
146149
//!

0 commit comments

Comments
 (0)