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 {
|
||||
print!("{}", prompt);
|
||||
let mut input = String::new();
|
||||
let _ = io::stdout().flush();
|
||||
io::stdin()
|
||||
.read_line(&mut input)
|
||||
.expect("Error reading from STDIN");
|
||||
input.trim().parse::<u16>().unwrap()
|
||||
}
|
||||
//pub fn u16_input(prompt: &str) -> u16 {
|
||||
// print!("{}", prompt);
|
||||
// let mut input = String::new();
|
||||
// let _ = io::stdout().flush();
|
||||
// io::stdin()
|
||||
// .read_line(&mut input)
|
||||
// .expect("Error reading from STDIN");
|
||||
// input.trim().parse::<u16>().unwrap()
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user