diff options
| author | Ralf Jung <post@ralfj.de> | 2018-10-04 18:53:16 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-10-10 09:58:17 +0200 |
| commit | e0b17ad26cd31d3f40bb00c993eafd7be458b588 (patch) | |
| tree | cfdbfb17b2e3836a4cda3286e57a52e31d46a62b | |
| parent | d4b21f1ed3fcc377203cde3c567290a04ce24930 (diff) | |
| download | rust-e0b17ad26cd31d3f40bb00c993eafd7be458b588.tar.gz rust-e0b17ad26cd31d3f40bb00c993eafd7be458b588.zip | |
fix typos
| -rw-r--r-- | src/librustc_mir/const_eval.rs | 2 | ||||
| -rw-r--r-- | 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 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 |
