Updated Readme.md file and bumped version number 0.1.1
authorHarishankar <v.harishankar@gmail.com>
Sun, 31 May 2020 11:03:45 +0000 (16:33 +0530)
committerHarishankar <v.harishankar@gmail.com>
Sun, 31 May 2020 11:05:41 +0000 (16:35 +0530)
Updated Readme.md and bumped the version number

Cargo.toml
Readme.md
src/main.rs

index 2e0cb3d..817272d 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "evpf"
 [package]
 name = "evpf"
-version = "0.1.0"
+version = "0.1.1"
 authors = ["Harishankar <v.harishankar@gmail.com>"]
 edition = "2018"
 
 authors = ["Harishankar <v.harishankar@gmail.com>"]
 edition = "2018"
 
index 69a2db1..3551e28 100644 (file)
--- a/Readme.md
+++ b/Readme.md
@@ -15,8 +15,8 @@ line mode, `*` has to be escaped using `\*` to work properly.)
 ## 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`)
 
     evpf> 
 
 
     evpf> 
 
index 8e54265..c5dd52e 100644 (file)
@@ -195,7 +195,10 @@ fn run_interactive_mode (match_num : &regex::Regex) {
        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 {