Skip to content

Commit c2cc7c5

Browse files
committed
doc: minor and grammar improvements in theme.rs.
1 parent 7426264 commit c2cc7c5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/theme.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ pub trait Theme {
101101
self.format_input_prompt_selection(f, prompt, "[hidden]")
102102
}
103103

104-
/// Format a select prompt.
104+
/// Format a selection prompt.
105105
#[inline]
106106
fn format_select_prompt(&self, f: &mut dyn fmt::Write, prompt: &str) -> fmt::Result {
107107
self.format_prompt(f, prompt)
108108
}
109109

110-
/// Format a select prompt after selection.
110+
/// Format a selection prompt after an item was selected.
111111
#[inline]
112112
fn format_select_prompt_selection(
113113
&self,
@@ -118,7 +118,7 @@ pub trait Theme {
118118
self.format_input_prompt_selection(f, prompt, sel)
119119
}
120120

121-
/// Format a multi select prompt.
121+
/// Format a multi-selection prompt.
122122
#[inline]
123123
fn format_multi_select_prompt(&self, f: &mut dyn fmt::Write, prompt: &str) -> fmt::Result {
124124
self.format_prompt(f, prompt)
@@ -130,7 +130,7 @@ pub trait Theme {
130130
self.format_prompt(f, prompt)
131131
}
132132

133-
/// Format a multi_select prompt after selection.
133+
/// Format a multi-selection prompt after an item was selected.
134134
fn format_multi_select_prompt_selection(
135135
&self,
136136
f: &mut dyn fmt::Write,
@@ -144,7 +144,7 @@ pub trait Theme {
144144
Ok(())
145145
}
146146

147-
/// Format a sort prompt after selection.
147+
/// Format a sort prompt after an item was selected.
148148
#[inline]
149149
fn format_sort_prompt_selection(
150150
&self,
@@ -155,7 +155,7 @@ pub trait Theme {
155155
self.format_multi_select_prompt_selection(f, prompt, selections)
156156
}
157157

158-
/// Format a select prompt item.
158+
/// Format a single selection prompt item.
159159
fn format_select_prompt_item(
160160
&self,
161161
f: &mut dyn fmt::Write,
@@ -165,7 +165,7 @@ pub trait Theme {
165165
write!(f, "{} {}", if active { ">" } else { " " }, text)
166166
}
167167

168-
/// Formats a multi select prompt item.
168+
/// Format a single multi-selection prompt item.
169169
fn format_multi_select_prompt_item(
170170
&self,
171171
f: &mut dyn fmt::Write,
@@ -206,7 +206,7 @@ pub trait Theme {
206206
)
207207
}
208208

209-
/// Format a fuzzy select prompt.
209+
/// Format a fuzzy selection prompt.
210210
#[cfg(feature = "fuzzy-select")]
211211
fn format_fuzzy_select_prompt(
212212
&self,
@@ -848,7 +848,7 @@ impl<'a> TermThemeRenderer<'a> {
848848

849849
pub fn clear_preserve_prompt(&mut self, size_vec: &[usize]) -> io::Result<()> {
850850
let mut new_height = self.height;
851-
//Check each item size, increment on finding an overflow
851+
// Check each item size, increment on finding an overflow
852852
for size in size_vec {
853853
if *size > self.term.size().1 as usize {
854854
new_height += 1;

0 commit comments

Comments
 (0)