Skip to content

Commit 8d70f40

Browse files
authored
Fix a typo
1 parent b663c0f commit 8d70f40

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)