From 6893c9099372bc77177f43920c5aa5d9671ffc88 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 4 May 2025 01:53:16 -0700 Subject: change the mnemonic for print from p to e to avoid conflict with dup Force-Push: yes Change-Id: I273d42fc0829f0d9e7ac9effa7c6abc698e26d27 --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 2dd5278..d9b7d5f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ const HELP_TEXT: &str = x evaluate string\n\ \n\ META\n\ - p print the top item of the stack, leaving it in place\n\ + e print (\"echo\") the top item of the stack, leaving it in place\n\ n print the top item of the stack, popping it\n\ q quit (you can also ^D)\n\ ? help (this message)\n\ @@ -512,7 +512,7 @@ fn make_command_character_readtable() -> ReadTable { //////////////////////////////////////////////////////////// // Meta actions // - result.set_action('p', move |_, state| { + result.set_action('e', move |_, state| { if state.stack.is_empty() { return Err(err_msg("Data underflow!".into())); } -- cgit 1.4.1