about summary refs log tree commit diff
diff options
context:
space:
mode:
authorasquared31415 <34665709+asquared31415@users.noreply.github.com>2024-01-12 15:51:18 -0500
committerGitHub <noreply@github.com>2024-01-12 15:51:18 -0500
commit51afc0922cc8b273fe8fb96ddcd190b307bad4b4 (patch)
treea9d8e9408acf911534b45b2563f9cb9e508a61c2
parentce1f2ccf5a5ac9343623bd115a05e4151d93af0d (diff)
downloadrust-51afc0922cc8b273fe8fb96ddcd190b307bad4b4.tar.gz
rust-51afc0922cc8b273fe8fb96ddcd190b307bad4b4.zip
fix typo in `fn()` docs
-rw-r--r--library/core/src/primitive_docs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs
index bd2851a26fb..267d9b44ad7 100644
--- a/library/core/src/primitive_docs.rs
+++ b/library/core/src/primitive_docs.rs
@@ -1605,9 +1605,9 @@ mod prim_ref {}
 /// type in the function pointer to the type at the function declaration, and the return value is
 /// [`transmute`d][mem::transmute] from the type in the declaration to the type in the
 /// pointer. All the usual caveats and concerns around transmutation apply; for instance, if the
-/// function expects a `NonNullI32` and the function pointer uses the ABI-compatible type
-/// `Option<NonNullI32>`, and the value used for the argument is `None`, then this call is Undefined
-/// Behavior since transmuting `None::<NonNullI32>` to `NonNullI32` violates the non-null
+/// function expects a `NonZeroI32` and the function pointer uses the ABI-compatible type
+/// `Option<NonZeroI32>`, and the value used for the argument is `None`, then this call is Undefined
+/// Behavior since transmuting `None::<NonZeroI32>` to `NonZeroI32` violates the non-zero
 /// requirement.
 ///
 /// #### Requirements concerning target features