Skip to content

Commit

Permalink
Update some docs in confirm prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Jan 30, 2021
1 parent a76fb72 commit 0250090
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/prompts/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ impl<'a> Confirm<'a> {

/// Disables or enables the default value display.
///
/// The default is to append `[y/n]` to the prompt to tell the
/// user which keys to press. This also renders the default choice
/// in uppercase. The default is selected on enter.
/// The default is to append the default value to the prompt to tell the user.
pub fn show_default(&mut self, val: bool) -> &mut Confirm<'a> {
self.show_default = val;
self
Expand Down

0 comments on commit 0250090

Please sign in to comment.