aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 1a05904..8a66c4d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -47,7 +47,7 @@ impl Hinter for AnswerHinter {
47 } 47 }
48 let dry_run = eval_math_expression(&input); 48 let dry_run = eval_math_expression(&input);
49 match dry_run { 49 match dry_run {
50 Ok(ans) => return Some(format!("\x1b[90m = {}\x1b[0m", ans)), 50 Ok(ans) => return Some(format!(" = {}", ans)),
51 Err(_) => return Some(format!("")) 51 Err(_) => return Some(format!(""))
52 }; 52 };
53 } 53 }
@@ -59,7 +59,7 @@ impl Highlighter for RLHelper {
59 } 59 }
60 60
61 fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> { 61 fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> {
62 Owned("\x1b[1m".to_owned() + hint + "\x1b[m") 62 Owned("\x1b[90m".to_owned() + hint + "\x1b[0m")
63 } 63 }
64 64
65 fn highlight<'l>(&self, line: &'l str, pos: usize) -> Cow<'l, str> { 65 fn highlight<'l>(&self, line: &'l str, pos: usize) -> Cow<'l, str> {