From 45a202e1de12b12974b758b2ac269c340f1d6540 Mon Sep 17 00:00:00 2001 From: tjjfvi Date: Tue, 27 Feb 2024 16:57:58 -0500 Subject: [PATCH] fix cspell --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bbc9c32e..cd3f33d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -171,7 +171,7 @@ fn run(host: &Host, opts: RuntimeOpts, args: RunArgs) { /// doesn't fail on 32-bit systems. We want it to fail later on, when attempting /// to run the program. fn mem_parser(arg: &str) -> Result { - let (base, mult) = match arg.to_lowercase().chars().last() { + let (base, scale) = match arg.to_lowercase().chars().last() { None => return Err("Mem size argument is empty".to_string()), Some('k') => (&arg[0 .. arg.len() - 1], 1 << 10), Some('m') => (&arg[0 .. arg.len() - 1], 1 << 20), @@ -179,7 +179,7 @@ fn mem_parser(arg: &str) -> Result { Some(_) => (arg, 1), }; let base = base.parse::().map_err(|e| e.to_string())?; - Ok(base * mult) + Ok(base * scale) } fn load_files(files: &[String]) -> Arc> {