Skip to content

Commit e0b17ad

Browse files
committed
fix typos
1 parent d4b21f1 commit e0b17ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl<'a, 'mir, 'tcx> interpret::Machine<'a, 'mir, 'tcx>
349349
fn static_with_default_tag(
350350
alloc: &'_ Allocation
351351
) -> Cow<'_, Allocation<Self::PointerTag>> {
352-
// We do not use a tag so we can just cheapyl forward the reference
352+
// We do not use a tag so we can just cheaply forward the reference
353353
Cow::Borrowed(alloc)
354354
}
355355

src/librustc_mir/interpret/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub trait Machine<'a, 'mir, 'tcx>: Sized {
9191
/// the appropriate tags on each pointer.
9292
///
9393
/// This should avoid copying if no work has to be done! If this returns an owned
94-
/// allocation (because a copy had to be done to add the tags), machibe memory will
94+
/// allocation (because a copy had to be done to add the tags), machine memory will
9595
/// cache the result.
9696
fn static_with_default_tag(
9797
alloc: &'_ Allocation

0 commit comments

Comments
 (0)