fix typo
This commit is contained in:
parent
ea3ef15805
commit
71aa3605cd
|
@ -44,7 +44,7 @@ impl FromStr for Instruction {
|
||||||
match s {
|
match s {
|
||||||
"noop" => Ok(Self::Noop),
|
"noop" => Ok(Self::Noop),
|
||||||
_ if { s.starts_with("addx ") } => Ok(Self::Addx {
|
_ 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"),
|
_ => Err("cannot parse instruction"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue