mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 12:50:32 +00:00
commented out u16_input function
This commit is contained in:
@@ -26,12 +26,12 @@ pub fn int_input(prompt: &str) -> usize {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn u16_input(prompt: &str) -> u16 {
|
//pub fn u16_input(prompt: &str) -> u16 {
|
||||||
print!("{}", prompt);
|
// print!("{}", prompt);
|
||||||
let mut input = String::new();
|
// let mut input = String::new();
|
||||||
let _ = io::stdout().flush();
|
// let _ = io::stdout().flush();
|
||||||
io::stdin()
|
// io::stdin()
|
||||||
.read_line(&mut input)
|
// .read_line(&mut input)
|
||||||
.expect("Error reading from STDIN");
|
// .expect("Error reading from STDIN");
|
||||||
input.trim().parse::<u16>().unwrap()
|
// input.trim().parse::<u16>().unwrap()
|
||||||
}
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user