Skip to content

Commit 980a4a7

Browse files
Rollup merge of rust-lang#85817 - r00ster91:patch-9, r=dtolnay
Fix a typo See also: rust-lang#85737
2 parents b0f2a4c + 8d70f40 commit 980a4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/is_zero.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ unsafe impl<T: ?Sized> IsZero for Option<Box<T>> {
7373
// `Option<num::NonZeroU32>` and similar have a representation guarantee that
7474
// they're the same size as the corresponding `u32` type, as well as a guarantee
7575
// that transmuting between `NonZeroU32` and `Option<num::NonZeroU32>` works.
76-
// While the documentation officially makes in UB to transmute from `None`,
76+
// While the documentation officially makes it UB to transmute from `None`,
7777
// we're the standard library so we can make extra inferences, and we know that
7878
// the only niche available to represent `None` is the one that's all zeros.
7979

0 commit comments

Comments
 (0)