From e0b17ad26cd31d3f40bb00c993eafd7be458b588 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 4 Oct 2018 18:53:16 +0200 Subject: [PATCH] fix typos --- src/librustc_mir/const_eval.rs | 2 +- src/librustc_mir/interpret/machine.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_mir/const_eval.rs b/src/librustc_mir/const_eval.rs index 65b323d84331..a0f9586f7185 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> { - // 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 c7f47a93dae5..f2356cc4e269 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