Skip to content

Commit

Permalink
fix: variable name change
Browse files Browse the repository at this point in the history
  • Loading branch information
jfvillablanca committed Nov 5, 2023
1 parent 8b4bad7 commit e47d660
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/lab1/population/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn get_int(prompt: &str) -> i32 {
let mut input_text = String::new();
match io::stdin().read_line(&mut input_text) {
Ok(_) => match input_text.trim().parse() {
Ok(start_size) => return start_size,
Ok(int_input) => return int_input,
Err(_) => continue,
},
Err(_) => continue,
Expand Down
2 changes: 1 addition & 1 deletion rust/pset1/cash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn get_int(prompt: &str) -> i32 {
let mut input_text = String::new();
match io::stdin().read_line(&mut input_text) {
Ok(_) => match input_text.trim().parse() {
Ok(input_int) => return input_int,
Ok(int_input) => return int_input,
Err(_) => continue,
},
Err(_) => continue,
Expand Down
2 changes: 1 addition & 1 deletion rust/pset1/credit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn get_long(prompt: &str) -> u64 {
let mut input_text = String::new();
match io::stdin().read_line(&mut input_text) {
Ok(_) => match input_text.trim().parse() {
Ok(input_long) => return input_long,
Ok(long_input) => return long_input,
Err(_) => continue,
},
Err(_) => continue,
Expand Down

0 comments on commit e47d660

Please sign in to comment.