]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in eval.rs
authorHiroki6 <hirokifujino0108@gmail.com>
Sun, 31 Jul 2022 14:08:27 +0000 (16:08 +0200)
committerHiroki6 <hirokifujino0108@gmail.com>
Sun, 31 Jul 2022 14:15:11 +0000 (16:15 +0200)
src/eval.rs

index 53264bd465914e943ba5bf4b405dcf73085d5117..c6fde1e683e0e8544d06ee09c85f747f53c8d244 100644 (file)
@@ -246,7 +246,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
         }
         // Store command line as UTF-16 for Windows `GetCommandLineW`.
         {
-            // Construct a command string with all the aguments.
+            // Construct a command string with all the arguments.
             let cmd_utf16: Vec<u16> = args_to_utf16_command_string(config.args.iter());
 
             let cmd_type = tcx.mk_array(tcx.types.u16, u64::try_from(cmd_utf16.len()).unwrap());
@@ -311,7 +311,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
 
 /// Evaluates the entry function specified by `entry_id`.
 /// Returns `Some(return_code)` if program executed completed.
-/// Returns `None` if an evaluation error occured.
+/// Returns `None` if an evaluation error occurred.
 pub fn eval_entry<'tcx>(
     tcx: TyCtxt<'tcx>,
     entry_id: DefId,