Skip to content

Commit a08f6f1

Browse files
committed
document representation of Option<unsafe fn()>
1 parent 52bf0cf commit a08f6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
//! | [`ptr::NonNull<U>`] | when `U: Sized` |
136136
//! | `#[repr(transparent)]` struct around one of the types in this list. | when it holds for the inner type |
137137
//!
138-
//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
138+
//! [^extern_fn]: this remains true for `unsafe` variants, any argument/return types, and any other ABI: `[unsafe] extern "abi" fn` (_e.g._, `extern "system" fn`)
139139
//!
140140
//! Under some conditions the above types `T` are also null pointer optimized when wrapped in a [`Result`][result_repr].
141141
//!

0 commit comments

Comments
 (0)