@@ -78,9 +78,9 @@ impl Confirm<'_> {
78
78
79
79
/// Set a default choice for the prompt.
80
80
///
81
- /// Out of the box the prompt does not have a default and will continue
82
- /// to display until the user inputs something and hits enter. If a default is set the user
83
- /// can instead accept the default with enter.
81
+ /// Out of the box, the prompt does not have a default choice and will continue
82
+ /// to display until the user inputs something and hits enter. If a default is set,
83
+ /// the user can also accept the default with enter.
84
84
pub fn default ( & mut self , val : bool ) -> & mut Self {
85
85
self . default = Some ( val) ;
86
86
self
@@ -98,8 +98,10 @@ impl Confirm<'_> {
98
98
///
99
99
/// The dialog is rendered on stderr.
100
100
///
101
- /// Result contains `bool` if user answered "yes" or "no" or `default` (configured in [`default`](Self::default) if pushes enter.
102
- /// This unlike [`interact_opt`](Self::interact_opt) does not allow to quit with 'Esc' or 'q'.
101
+ /// Result contains `bool` if the user answered "yes" or "no" or `default`
102
+ /// (configured in [`default`](Self::default)) if they pushed enter.
103
+ /// Unlike [`interact_opt`](Self::interact_opt), this does not allow
104
+ /// to quit the dialog with 'Esc' or 'q'.
103
105
#[ inline]
104
106
pub fn interact ( & self ) -> io:: Result < bool > {
105
107
self . interact_on ( & Term :: stderr ( ) )
@@ -109,8 +111,9 @@ impl Confirm<'_> {
109
111
///
110
112
/// The dialog is rendered on stderr.
111
113
///
112
- /// Result contains `Some(bool)` if user answered "yes" or "no" or `Some(default)` (configured in [`default`](Self::default)) if pushes enter,
113
- /// or `None` if user cancelled with 'Esc' or 'q'.
114
+ /// Result contains `Some(bool)` if the user answered "yes" or "no" or `Some(default)`
115
+ /// (configured in [`default`](Self::default)) if they pushed enter,
116
+ /// or `None` if the user cancelled the prompt with 'Esc' or 'q'.
114
117
#[ inline]
115
118
pub fn interact_opt ( & self ) -> io:: Result < Option < bool > > {
116
119
self . interact_on_opt ( & Term :: stderr ( ) )
0 commit comments