File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 
                         You can’t perform that action at this time. 
           
                  
0 commit comments