Skip to content

Commit

Permalink
Small fixes to history example
Browse files Browse the repository at this point in the history
  • Loading branch information
evenorog committed Sep 21, 2023
1 parent d01c3a5 commit 0113ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 == '<' {
Expand Down

0 comments on commit 0113ea4

Please sign in to comment.