fix typos
This commit is contained in:
parent
d4b21f1ed3
commit
e0b17ad26c
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue