idk why this doesn't work but i'll fix it later LOL
This commit is contained in:
parent
8b177dfcce
commit
322ecf8afa
|
@ -6,7 +6,7 @@ fn main () {
|
||||||
println!("the sum of all calibration values is {sum}!");
|
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 numbers: [&str; 10] = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
|
||||||
let mut processed: String = String::from(line);
|
let mut processed: String = String::from(line);
|
||||||
loop {
|
loop {
|
||||||
|
|
Loading…
Reference in a new issue