Add TODOs
This commit is contained in:
@@ -5,11 +5,13 @@ fn main() {
|
|||||||
|
|
||||||
let mut n = String::new();
|
let mut n = String::new();
|
||||||
|
|
||||||
|
// TODO add actual error handling, loop on non-integer
|
||||||
println!("What would you like n to equal? ");
|
println!("What would you like n to equal? ");
|
||||||
io::stdin()
|
io::stdin()
|
||||||
.read_line(&mut n)
|
.read_line(&mut n)
|
||||||
.expect("Enter an integer.");
|
.expect("Enter an integer.");
|
||||||
|
|
||||||
|
// TODO add actual error handling
|
||||||
let n = n.trim().parse().expect("Failed to parse.");
|
let n = n.trim().parse().expect("Failed to parse.");
|
||||||
|
|
||||||
let mut f_previous = 0;
|
let mut f_previous = 0;
|
||||||
|
Reference in New Issue
Block a user