File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1605,9 +1605,9 @@ mod prim_ref {}
1605
1605
/// type in the function pointer to the type at the function declaration, and the return value is
1606
1606
/// [`transmute`d][mem::transmute] from the type in the declaration to the type in the
1607
1607
/// 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
1611
1611
/// requirement.
1612
1612
///
1613
1613
/// #### Requirements concerning target features
You can’t perform that action at this time.
0 commit comments