diff --git a/Tasks/Conflicts/code_scenario3.rs b/Tasks/Conflicts/code_scenario3.rs index bb39b5b..1633862 100644 --- a/Tasks/Conflicts/code_scenario3.rs +++ b/Tasks/Conflicts/code_scenario3.rs @@ -31,15 +31,15 @@ fn main() { let input = &args[1]; // The input string to be parsed // Try parsing input as i32 - if let Ok(value) = input.parse::() { - println!("{value} is of type i32: {} bytes", mem::size_of::()); - print_other_types("i32"); - } - // Try parsing input as u32 - else if let Ok(value) = input.parse::() { + if let Ok(value) = input.parse::() { println!("{value} is of type u32: {} bytes", mem::size_of::()); print_other_types("u32"); } + // Try parsing input as u32 + else if let Ok(value) = input.parse::() { + println!("{value} is of type i32: {} bytes", mem::size_of::()); + print_other_types("i32"); + } // Try parsing input as f64 else if let Ok(value) = input.parse::() { println!("{value} is of type f64: {} bytes", mem::size_of::());