Skip to content

Commit 1875fe5

Browse files
committed
doc: Use imperative tense more in theme.rs.
1 parent 13a2153 commit 1875fe5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/theme.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl Default for ColorfulTheme {
313313
}
314314

315315
impl Theme for ColorfulTheme {
316-
/// Formats a prompt.
316+
/// Format a prompt.
317317
fn format_prompt(&self, f: &mut dyn fmt::Write, prompt: &str) -> fmt::Result {
318318
if !prompt.is_empty() {
319319
write!(
@@ -327,7 +327,7 @@ impl Theme for ColorfulTheme {
327327
write!(f, "{}", &self.prompt_suffix)
328328
}
329329

330-
/// Formats an error
330+
/// Format an error.
331331
fn format_error(&self, f: &mut dyn fmt::Write, err: &str) -> fmt::Result {
332332
write!(
333333
f,
@@ -337,7 +337,7 @@ impl Theme for ColorfulTheme {
337337
)
338338
}
339339

340-
/// Formats an input prompt.
340+
/// Format an input prompt.
341341
fn format_input_prompt(
342342
&self,
343343
f: &mut dyn fmt::Write,
@@ -364,7 +364,7 @@ impl Theme for ColorfulTheme {
364364
}
365365
}
366366

367-
/// Formats a confirm prompt.
367+
/// Format a confirmation prompt.
368368
fn format_confirm_prompt(
369369
&self,
370370
f: &mut dyn fmt::Write,
@@ -404,7 +404,7 @@ impl Theme for ColorfulTheme {
404404
}
405405
}
406406

407-
/// Formats a confirm prompt after selection.
407+
/// Format a confirmation prompt after selection.
408408
fn format_confirm_prompt_selection(
409409
&self,
410410
f: &mut dyn fmt::Write,

0 commit comments

Comments
 (0)