Skip to content

Commit 51afc09

Browse files
fix typo in fn() docs
1 parent ce1f2cc commit 51afc09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1605,9 +1605,9 @@ mod prim_ref {}
16051605
/// type in the function pointer to the type at the function declaration, and the return value is
16061606
/// [`transmute`d][mem::transmute] from the type in the declaration to the type in the
16071607
/// pointer. All the usual caveats and concerns around transmutation apply; for instance, if the
1608-
/// function expects a `NonNullI32` and the function pointer uses the ABI-compatible type
1609-
/// `Option<NonNullI32>`, and the value used for the argument is `None`, then this call is Undefined
1610-
/// Behavior since transmuting `None::<NonNullI32>` to `NonNullI32` violates the non-null
1608+
/// function expects a `NonZeroI32` and the function pointer uses the ABI-compatible type
1609+
/// `Option<NonZeroI32>`, and the value used for the argument is `None`, then this call is Undefined
1610+
/// Behavior since transmuting `None::<NonZeroI32>` to `NonZeroI32` violates the non-zero
16111611
/// requirement.
16121612
///
16131613
/// #### Requirements concerning target features

0 commit comments

Comments
 (0)