errors are fixed

This commit is contained in:
jane 2021-12-26 21:50:51 -05:00
parent e22f4fba92
commit 782ba40fd3

View file

@ -56,7 +56,7 @@ impl<'a> Pattern<'a> for Value {
fn parse(args: Vec<String>) -> Result<Self, ParseError> {
let param1 = args[1].parse::<u8>();
let param2 = args[2].parse::<u8>();
let param3 = args[2].parse::<u8>();
let param3 = args[3].parse::<u8>();
if param1.is_ok() && param2.is_ok() && param3.is_ok() {
Ok(Value{
r: Some(param1.unwrap()),