Rollup merge of #85817 - r00ster91:patch-9, r=dtolnay
Fix a typo See also: #85737
This commit is contained in:
commit
980a4a725e
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue