summary refs log tree commit diff
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2025-05-04 01:53:16 -0700
committerIrene Knapp <ireneista@irenes.space>2025-05-04 01:53:16 -0700
commit6893c9099372bc77177f43920c5aa5d9671ffc88 (patch)
tree289a6ddb3078812ea257d533b9e1963411182bc9
parent3516cb3fa5f475f98246f48601eda31bfa11cc52 (diff)
change the mnemonic for print from p to e to avoid conflict with dup HEAD main
Force-Push: yes
Change-Id: I273d42fc0829f0d9e7ac9effa7c6abc698e26d27
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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()));
     }