pub const fn new(prompt: &str) -> Prompt<'_> ⓘ
Construct a new Prompt with the default editor
Prompt
6 7 8 9 10 11 12
fn main() -> Result<(), pomprt::Error> { for line in pomprt::new("><> ") { println!("{line}"); } Ok(()) }