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 }) }