[][src]Function challenge_prompt::prompt_gen

pub fn prompt_gen(prompt: &str, expected: &[&str]) -> bool

Generic prompt implementation: print out the prompt, read a line of input, and return whether it matches expected or not.