We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0f2a4c + 8d70f40 commit 980a4a7Copy full SHA for 980a4a7
library/alloc/src/vec/is_zero.rs
@@ -73,7 +73,7 @@ unsafe impl<T: ?Sized> IsZero for Option<Box<T>> {
73
// `Option<num::NonZeroU32>` and similar have a representation guarantee that
74
// they're the same size as the corresponding `u32` type, as well as a guarantee
75
// that transmuting between `NonZeroU32` and `Option<num::NonZeroU32>` works.
76
-// While the documentation officially makes in UB to transmute from `None`,
+// While the documentation officially makes it UB to transmute from `None`,
77
// we're the standard library so we can make extra inferences, and we know that
78
// the only niche available to represent `None` is the one that's all zeros.
79
0 commit comments