Skip to content
Snippets Groups Projects
Commit d1a1beb5 authored by Katsu Kawakami's avatar Katsu Kawakami
Browse files

Update example to match against Option<String> returned by readline

parent 4ca33c11
No related branches found
No related tags found
No related merge requests found
extern crate rustyline;
fn main() {
rustyline::readline();
let readline = rustyline::readline();
match readline {
Some(line) => println!("Line: {:?}",line),
None => println!("No input"),
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment