Skip to main content

read_prompt

Function read_prompt 

Source
pub fn read_prompt(prompt: &str) -> String
Expand description

Read input from stdin with a prompt

§Arguments

  • prompt - The prompt to display to the user

§Returns

The user’s input as a String (trimmed of whitespace)