From 66f6fa68fa7e49d13a3fcf4128790a38220651d6 Mon Sep 17 00:00:00 2001 From: Hiroki6 Date: Sun, 31 Jul 2022 16:08:27 +0200 Subject: [PATCH] Fix typo in eval.rs --- src/eval.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eval.rs b/src/eval.rs index 53264bd4659..c6fde1e683e 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -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 = 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,