]> git.lizzy.rs Git - rust.git/commitdiff
Fix a typo
authorr00ster <r00ster91@protonmail.com>
Sat, 29 May 2021 22:06:27 +0000 (00:06 +0200)
committerGitHub <noreply@github.com>
Sat, 29 May 2021 22:06:27 +0000 (00:06 +0200)
library/alloc/src/vec/is_zero.rs

index 6fade636df9e22ba752fe9ed5675bf7c0bc733ee..0efc4893c3c42847a696197a1a223687cd9f0741 100644 (file)
@@ -73,7 +73,7 @@ fn is_zero(&self) -> bool {
 // `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.