From 89ab30219cc0c534df8447e1b4ca7e448e9525e7 Mon Sep 17 00:00:00 2001 From: Jessica Jones Date: Fri, 17 Oct 2025 15:28:23 -0700 Subject: [PATCH] Add TODOs --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8a755af..d3f64ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,12 +4,14 @@ fn main() { println!("Rust Fibonacci: Calculate the nth element of the Fibonacci sequence."); let mut n = String::new(); - + + // TODO add actual error handling, loop on non-integer println!("What would you like n to equal? "); io::stdin() .read_line(&mut n) .expect("Enter an integer."); + // TODO add actual error handling let n = n.trim().parse().expect("Failed to parse."); let mut f_previous = 0;