about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorlcnr <bastian_kauschke@hotmail.de>2020-10-24 09:27:15 +0200
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-11-16 22:42:09 +0100
commita6cbd64dae97fc0cf626ad688b285f5a8ecde393 (patch)
tree2d4a2f7465d8b6ea3dbcca6e8cfb1848adedc708 /compiler/rustc_data_structures/src
parent80acfea5a756004737a3dfc2a46b7e28b2629f9a (diff)
downloadrust-a6cbd64dae97fc0cf626ad688b285f5a8ecde393.tar.gz
rust-a6cbd64dae97fc0cf626ad688b285f5a8ecde393.zip
words
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/functor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/functor.rs b/compiler/rustc_data_structures/src/functor.rs
index 5d3639388f0..fe7a256d210 100644
--- a/compiler/rustc_data_structures/src/functor.rs
+++ b/compiler/rustc_data_structures/src/functor.rs
@@ -22,7 +22,7 @@ impl<T> IdFunctor for Box<T> {
         unsafe {
             // SAFETY: The raw pointer points to a valid value of type `T`.
             let value = ptr::read(raw);
-            // SAFETY: Convert's `Box<T>` to `Box<MaybeUninit<T>>` which is the
+            // SAFETY: Converts `Box<T>` to `Box<MaybeUninit<T>>` which is the
             // inverse of `Box::assume_init()` and should be safe.
             let mut raw: Box<mem::MaybeUninit<T>> = Box::from_raw(raw.cast());
             // SAFETY: Write the mapped value back into the `Box`.