summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-11-13 15:26:17 +0800
committercui fliter <imcusg@gmail.com>2022-11-13 15:26:17 +0800
commit442f848d74c4c3b89e9358a2dced1518f406cbb6 (patch)
treef35e794467cb38203e0e0edbfbc71769f4035d28 /compiler/rustc_const_eval/src
parent229e875878a682411df8b8adae39372302d2b4c7 (diff)
downloadrust-442f848d74c4c3b89e9358a2dced1518f406cbb6.tar.gz
rust-442f848d74c4c3b89e9358a2dced1518f406cbb6.zip
fix some typos in comments
Signed-off-by: cui fliter <imcusg@gmail.com>
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/interpret/operand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs
index dd00678aa0c..8717a325fa5 100644
--- a/compiler/rustc_const_eval/src/interpret/operand.rs
+++ b/compiler/rustc_const_eval/src/interpret/operand.rs
@@ -376,7 +376,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
 
     /// Read an immediate from a place, asserting that that is possible with the given layout.
     ///
-    /// If this suceeds, the `ImmTy` is never `Uninit`.
+    /// If this succeeds, the `ImmTy` is never `Uninit`.
     #[inline(always)]
     pub fn read_immediate(
         &self,