idk why this doesn't work but i'll fix it later LOL

This commit is contained in:
ari melody 2023-12-02 15:16:08 +00:00
parent 8b177dfcce
commit 322ecf8afa
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -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 {