Skip to content

Commit

Permalink
Rollup merge of rust-lang#85817 - r00ster91:patch-9, r=dtolnay
Browse files Browse the repository at this point in the history
Fix a typo

See also: rust-lang#85737
  • Loading branch information
GuillaumeGomez authored May 30, 2021
2 parents b0f2a4c + 8d70f40 commit 980a4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec/is_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ unsafe impl<T: ?Sized> IsZero for Option<Box<T>> {
// `Option<num::NonZeroU32>` and similar have a representation guarantee that
// they're the same size as the corresponding `u32` type, as well as a guarantee
// that transmuting between `NonZeroU32` and `Option<num::NonZeroU32>` works.
// While the documentation officially makes in UB to transmute from `None`,
// While the documentation officially makes it UB to transmute from `None`,
// we're the standard library so we can make extra inferences, and we know that
// the only niche available to represent `None` is the one that's all zeros.

Expand Down

0 comments on commit 980a4a7

Please sign in to comment.