summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a86a7c0)
Updated Readme.md and bumped the version number
authors = ["Harishankar <v.harishankar@gmail.com>"]
edition = "2018"
authors = ["Harishankar <v.harishankar@gmail.com>"]
edition = "2018"
## Interactive mode
Interactive mode displays a prompt where expressions can be evaluated by
## Interactive mode
Interactive mode displays a prompt where expressions can be evaluated by
-typing into the prompt (line editing and session-history supported by
-`rustyline`.
+typing into the prompt (line editing and command history support using
+`rustyline`).
let mut expr = String::new ();
let mut rl = Editor::<()>::new ();
let mut expr = String::new ();
let mut rl = Editor::<()>::new ();
+
+ // load the history file
let hist_file = get_history_file ();
let hist_file = get_history_file ();
+ // if unable to load the history file, display the appropriate error
if hist_file.is_err () {
eprintln! ("{}", &hist_file.unwrap_err());
} else {
if hist_file.is_err () {
eprintln! ("{}", &hist_file.unwrap_err());
} else {