From 71aa3605cd33619dbe936c579123e0b14f57f239 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sun, 11 Dec 2022 01:59:14 +0100 Subject: [PATCH] fix typo --- day10/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), }