about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorGoodDaisy <90915921+GoodDaisy@users.noreply.github.com>2023-10-23 20:29:24 +0800
committerGoodDaisy <90915921+GoodDaisy@users.noreply.github.com>2023-10-23 20:52:14 +0800
commit0d780b108b007c6232ab3cbba8c47822edbbbddd (patch)
tree07f19af55be0a703a1463b1826ea6e8c8e3c716e /compiler/rustc_const_eval/src/interpret
parenta56bd2b944aed6b4a0507cc1870fb4c86d08e48e (diff)
downloadrust-0d780b108b007c6232ab3cbba8c47822edbbbddd.tar.gz
rust-0d780b108b007c6232ab3cbba8c47822edbbbddd.zip
fix typos in comments
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/eval_context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs
index 791370660fe..3e764daa662 100644
--- a/compiler/rustc_const_eval/src/interpret/eval_context.rs
+++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs
@@ -1010,7 +1010,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             // Just make this an efficient immediate.
             // Note that not calling `layout_of` here does have one real consequence:
             // if the type is too big, we'll only notice this when the local is actually initialized,
-            // which is a bit too late -- we should ideally notice this alreayd here, when the memory
+            // which is a bit too late -- we should ideally notice this already here, when the memory
             // is conceptually allocated. But given how rare that error is and that this is a hot function,
             // we accept this downside for now.
             Operand::Immediate(Immediate::Uninit)