From 0113ea422241c8c7b850d7817387feddee4040f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Even=20Olsson=20Rogstadkj=C3=A6rnet?= Date: Thu, 21 Sep 2023 22:38:09 +0200 Subject: [PATCH] Small fixes to history example --- examples/history.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/history.rs b/examples/history.rs index 2aaab7f..9374ba3 100644 --- a/examples/history.rs +++ b/examples/history.rs @@ -16,7 +16,7 @@ fn main() -> io::Result<()> { let mut target = String::new(); let mut record = History::new(); loop { - println!("Enter a string to edit. Use '-' to undo, '+' to redo, and '! i-j' for goto: "); + println!("Enter a string to edit. Use '<' to undo, '>' to redo, and '! i-j' for goto: "); let mut string = String::new(); let n = stdin.read_line(&mut string)?; if n == 0 { @@ -38,7 +38,7 @@ fn main() -> io::Result<()> { if let (Some(root), Some(index)) = (at.next(), at.next()) { record.go_to(&mut target, At::new(root, index)); } else { - println!("Expected input as '! i-j', e.g. '! 1-5'.\n"); + println!("Expected input as '! i-j', e.g. '! 1-5'."); } break; } else if c == '<' {