Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <[email protected]>
  • Loading branch information
est31 and lcnr authored Feb 21, 2022
1 parent 5cc292e commit 413f3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_const_eval/src/interpret/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
// We need the `dest` ptr for the next operation, so we get it now.
// We already did the source checks and called the hooks so we are good to return early.
let Some((dest_alloc_id, dest_offset, dest)) = dest_parts else {
// Zero-sized *destiantion*.
// Zero-sized *destination*.
return Ok(());
};

Expand Down

0 comments on commit 413f3f7

Please sign in to comment.