fix: combine arguments in the correct order
`tylc 40e3 / 6e3` interpreted the args as "6e3/40e3" (before this change)
This commit is contained in:
parent
262c55b91a
commit
4bdb51968f
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ use rug::Float;
|
||||||
mod nodes;
|
mod nodes;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let input = match env::args().skip(1).reduce(|x, a| a + &x) {
|
let input = match env::args().skip(1).rev().reduce(|x, a| a + &x) {
|
||||||
Some(s) => s,
|
Some(s) => dbg!(s),
|
||||||
None => {
|
None => {
|
||||||
let mut buf = String::new();
|
let mut buf = String::new();
|
||||||
io::stdin().read_to_string(&mut buf).unwrap();
|
io::stdin().read_to_string(&mut buf).unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue