From 871adab22a64bd803b8ed0da6d6780ac7f5ab5b6 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 29 Oct 2023 07:01:13 +0800 Subject: chore: improve code quanity --- src/config/session.rs | 2 +- src/repl/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/config/session.rs b/src/config/session.rs index 95b01ef..09fd1ff 100644 --- a/src/config/session.rs +++ b/src/config/session.rs @@ -93,7 +93,7 @@ impl Session { pub fn guard_empty(&self) -> Result<()> { if !self.is_empty() { - bail!("Cannot perform this action in session") + bail!("Cannot perform this action in a session with messages") } Ok(()) } diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 797519b..fadb81f 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -31,8 +31,8 @@ pub const REPL_COMMANDS: [(&str, &str); 15] = [ (".copy", "Copy the last output to the clipboard"), (".read", "Read the contents of a file and submit"), (".edit", "Multi-line editing (CTRL+S to finish)"), - (".history", "Print the history"), - (".clear history", "Clear the history"), + (".history", "Print the REPL history"), + (".clear history", "Clear the REPL history"), (".help", "Print this help message"), (".exit", "Exit the REPL"), ]; -- cgit v1.2.3