about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_mir/const_eval.rs2
-rw-r--r--src/librustc_mir/interpret/machine.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/const_eval.rs b/src/librustc_mir/const_eval.rs
index 65b323d8433..a0f9586f718 100644
--- a/src/librustc_mir/const_eval.rs
+++ b/src/librustc_mir/const_eval.rs
@@ -349,7 +349,7 @@ impl<'a, 'mir, 'tcx> interpret::Machine<'a, 'mir, 'tcx>
     fn static_with_default_tag(
         alloc: &'_ Allocation
     ) -> Cow<'_, Allocation<Self::PointerTag>> {
-        // We do not use a tag so we can just cheapyl forward the reference
+        // We do not use a tag so we can just cheaply forward the reference
         Cow::Borrowed(alloc)
     }
 
diff --git a/src/librustc_mir/interpret/machine.rs b/src/librustc_mir/interpret/machine.rs
index c7f47a93dae..f2356cc4e26 100644
--- a/src/librustc_mir/interpret/machine.rs
+++ b/src/librustc_mir/interpret/machine.rs
@@ -91,7 +91,7 @@ pub trait Machine<'a, 'mir, 'tcx>: Sized {
     /// the appropriate tags on each pointer.
     ///
     /// This should avoid copying if no work has to be done! If this returns an owned
-    /// allocation (because a copy had to be done to add the tags), machibe memory will
+    /// allocation (because a copy had to be done to add the tags), machine memory will
     /// cache the result.
     fn static_with_default_tag(
         alloc: &'_ Allocation