From a50ec5d79bb4a357dcc1cf759254ea94c1484424 Mon Sep 17 00:00:00 2001 From: Martin HART Date: Thu, 29 Oct 2020 14:52:43 +0100 Subject: [PATCH] change var name --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index a29b6e1..c90b42f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,22 +79,22 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result return Err("This line should be the config !"), Some(raw) => raw, }; - if a.is_empty() { + if raw_setup.is_empty() { return Err("This line should not be empty !"); } - let b = match lines.next() { + let raw_inst = match lines.next() { None => return Err("This line should be the instruction !"), Some(raw) => raw, }; - if b.is_empty() { + if raw_inst.is_empty() { return Err("Thi line should not be empty !"); } - println!("{}", a); - println!("{}", b); + println!("{}", raw_setup); + println!("{}", raw_inst); } Ok(world::World { x, y }) }