From 81b787b1df2fb27d2dbafcd8a078a2aefb5d60f4 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Sun, 30 Oct 2016 11:12:37 -0700 Subject: [PATCH] Indicate "n" is default when prompted --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index aa402d6..0846e11 100644 --- a/src/util.rs +++ b/src/util.rs @@ -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() {