Skip to content

Commit

Permalink
Clarify variable purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelmello committed Sep 26, 2022
1 parent a36cf14 commit 8dcc802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prompts/text.rs
Expand Up @@ -13,7 +13,7 @@ use crate::{
validator::{ErrorMessage, StringValidator, Validation},
};

const DEFAULT_HELP_MESSAGE: &str = "↑↓ to move, tab to auto-complete, enter to submit";
const DEFAULT_HELP_MESSAGE_WITH_AC: &str = "↑↓ to move, tab to auto-complete, enter to submit";

/// Standard text prompt that returns the user string input.
///
Expand Down Expand Up @@ -444,7 +444,7 @@ impl<'a> TextPrompt<'a> {
if let Some(message) = self.help_message {
backend.render_help_message(message)?;
} else if !choices.is_empty() {
backend.render_help_message(DEFAULT_HELP_MESSAGE)?;
backend.render_help_message(DEFAULT_HELP_MESSAGE_WITH_AC)?;
}

backend.frame_finish()?;
Expand Down

0 comments on commit 8dcc802

Please sign in to comment.