From 322ecf8afaa657925e668cb01aca0954dfe6bbe0 Mon Sep 17 00:00:00 2001 From: ari melody Date: Sat, 2 Dec 2023 15:16:08 +0000 Subject: [PATCH] idk why this doesn't work but i'll fix it later LOL --- day1-trebuchet/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day1-trebuchet/src/main.rs b/day1-trebuchet/src/main.rs index 0510a33..0b2001a 100644 --- a/day1-trebuchet/src/main.rs +++ b/day1-trebuchet/src/main.rs @@ -6,7 +6,7 @@ fn main () { println!("the sum of all calibration values is {sum}!"); } -fn replace_numbers<'a>(line: &str) -> String { +fn replace_numbers(line: &str) -> String { let numbers: [&str; 10] = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]; let mut processed: String = String::from(line); loop {