From bf4577f6e0cab47290189cf2f89c274ae130dada Mon Sep 17 00:00:00 2001 From: Burnus Date: Sun, 5 Jan 2025 11:58:11 +0100 Subject: [PATCH] 2024 Day 13 Spelling --- 2024/day13_claw_contraption/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024/day13_claw_contraption/src/lib.rs b/2024/day13_claw_contraption/src/lib.rs index 18ff1a5..78460c5 100644 --- a/2024/day13_claw_contraption/src/lib.rs +++ b/2024/day13_claw_contraption/src/lib.rs @@ -69,7 +69,7 @@ impl<'a> TryFrom<&'a str> for Machine { impl Machine { fn prize_cost(&self) -> Option { // Determine the winning combination using matrix inversion. This method delivers the only - // combination that will work (provided the button vectors are lenearly independent), but + // combination that will work (provided the button vectors are linearly independent), but // the result may be non-integer, in which case there is no valid solution. let inverse_determinant = 1.0 / ((self.btn_a.0*self.btn_b.1) as f64 - (self.btn_a.1*self.btn_b.0) as f64); let a_presses = (inverse_determinant * (