From 8d70f40b31c360f3b61e15dc3706bad762eb9a56 Mon Sep 17 00:00:00 2001 From: r00ster Date: Sun, 30 May 2021 00:06:27 +0200 Subject: [PATCH] Fix a typo --- library/alloc/src/vec/is_zero.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/vec/is_zero.rs b/library/alloc/src/vec/is_zero.rs index 6fade636df9e2..0efc4893c3c42 100644 --- a/library/alloc/src/vec/is_zero.rs +++ b/library/alloc/src/vec/is_zero.rs @@ -73,7 +73,7 @@ unsafe impl IsZero for Option> { // `Option` 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` 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.