about summary refs log tree commit diff
path: root/library/alloc/src/vec
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-30 21:06:52 +0200
committerGitHub <noreply@github.com>2021-05-30 21:06:52 +0200
commit980a4a725ee4e4935e65e311dfe801a7fabaabd6 (patch)
treefcef1d8d5034ba9d2f8f62a5d37a48da98909817 /library/alloc/src/vec
parentb0f2a4c6604bd228c570c3c97dc99272a531a70f (diff)
parent8d70f40b31c360f3b61e15dc3706bad762eb9a56 (diff)
downloadrust-980a4a725ee4e4935e65e311dfe801a7fabaabd6.tar.gz
rust-980a4a725ee4e4935e65e311dfe801a7fabaabd6.zip
Rollup merge of #85817 - r00ster91:patch-9, r=dtolnay
Fix a typo

See also: #85737
Diffstat (limited to 'library/alloc/src/vec')
-rw-r--r--library/alloc/src/vec/is_zero.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/is_zero.rs b/library/alloc/src/vec/is_zero.rs
index 6fade636df9..0efc4893c3c 100644
--- a/library/alloc/src/vec/is_zero.rs
+++ b/library/alloc/src/vec/is_zero.rs
@@ -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.