about summary refs log tree commit diff
diff options
context:
space:
mode:
authorest31 <est31@users.noreply.github.com>2022-02-21 08:28:20 +0100
committerGitHub <noreply@github.com>2022-02-21 08:28:20 +0100
commit413f3f787c9e8e4c2cb8abd73cdc16cb8d175590 (patch)
tree41e711bf4066b407559f002a4a0b50e902884586
parent5cc292eb1dcb22bd6a46478165b5820f8177c87f (diff)
downloadrust-413f3f787c9e8e4c2cb8abd73cdc16cb8d175590.tar.gz
rust-413f3f787c9e8e4c2cb8abd73cdc16cb8d175590.zip
Fix typo
Co-authored-by: lcnr <rust@lcnr.de>
-rw-r--r--compiler/rustc_const_eval/src/interpret/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs
index a1f94b095cf..73e7d862ad6 100644
--- a/compiler/rustc_const_eval/src/interpret/memory.rs
+++ b/compiler/rustc_const_eval/src/interpret/memory.rs
@@ -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(());
         };