diff --git a/day10/common.rs b/day10/common.rs index d2458e1..9edaaba 100644 --- a/day10/common.rs +++ b/day10/common.rs @@ -44,7 +44,7 @@ impl FromStr for Instruction { match s { "noop" => Ok(Self::Noop), _ if { s.starts_with("addx ") } => Ok(Self::Addx { - arg: s[5..].parse().map_err(|_| "cannot parse instrution")?, + arg: s[5..].parse().map_err(|_| "cannot parse instruction")?, }), _ => Err("cannot parse instruction"), }