From 4bdb51968f3f75a3a74cec9c0134255a8f1d699d Mon Sep 17 00:00:00 2001 From: electria Date: Mon, 27 Jul 2026 22:28:05 -0700 Subject: [PATCH] fix: combine arguments in the correct order `tylc 40e3 / 6e3` interpreted the args as "6e3/40e3" (before this change) --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 84c33ab..19fbd34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,8 +9,8 @@ use rug::Float; mod nodes; fn main() { - let input = match env::args().skip(1).reduce(|x, a| a + &x) { - Some(s) => s, + let input = match env::args().skip(1).rev().reduce(|x, a| a + &x) { + Some(s) => dbg!(s), None => { let mut buf = String::new(); io::stdin().read_to_string(&mut buf).unwrap();