mirror of
https://github.com/nivekuil/rip
synced 2024-11-10 06:04:17 +00:00
Indicate "n" is default when prompted
This commit is contained in:
parent
ad2b4ea8aa
commit
81b787b1df
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ fn get_user() -> String {
|
|||
|
||||
/// Prompt for user input, returning True if the first character is 'y' or 'Y'
|
||||
fn prompt_yes(prompt: &str) -> bool {
|
||||
print!("{} (y/n) ", prompt);
|
||||
print!("{} (y/N) ", prompt);
|
||||
io::stdout().flush().unwrap();
|
||||
let stdin = BufReader::new(io::stdin());
|
||||
if let Some(c) = stdin.chars().next() {
|
||||
|
|
Loading…
Reference in a new issue