This commit is contained in:
Christian Ulrich 2022-12-11 01:59:14 +01:00
parent ea3ef15805
commit 71aa3605cd
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 1 deletions

View File

@ -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"),
} }