From dee8f3698fe2331119112d36837e229737710b32 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 8 Sep 2022 20:53:54 +0800 Subject: [PATCH] Fix typos Found via `codespell -L crate,ser` --- src/finder/post.rs | 4 ++-- tests/no_prompt_cheats/cases.cheat | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finder/post.rs b/src/finder/post.rs index 8d660ce..cbd2d5e 100644 --- a/src/finder/post.rs +++ b/src/finder/post.rs @@ -157,8 +157,8 @@ mod tests { #[test] fn test_parse_snippet_request() { - let text = "enter\nssh ⠀login to a server and forward to ssh key (d… ⠀ssh -A @ ⠀ssh ⠀login to a server and forward to ssh key (dangerous but usefull for bastion hosts) ⠀ssh -A @ ⠀\n".to_string(); + let text = "enter\nssh ⠀login to a server and forward to ssh key (d… ⠀ssh -A @ ⠀ssh ⠀login to a server and forward to ssh key (dangerous but useful for bastion hosts) ⠀ssh -A @ ⠀\n".to_string(); let output = parse_output_single(text, SuggestionType::SnippetSelection).unwrap(); - assert_eq!(output, "enter\nssh ⠀login to a server and forward to ssh key (d… ⠀ssh -A @ ⠀ssh ⠀login to a server and forward to ssh key (dangerous but usefull for bastion hosts) ⠀ssh -A @ ⠀"); + assert_eq!(output, "enter\nssh ⠀login to a server and forward to ssh key (d… ⠀ssh -A @ ⠀ssh ⠀login to a server and forward to ssh key (dangerous but useful for bastion hosts) ⠀ssh -A @ ⠀"); } } diff --git a/tests/no_prompt_cheats/cases.cheat b/tests/no_prompt_cheats/cases.cheat index 8367d49..83c5bd4 100644 --- a/tests/no_prompt_cheats/cases.cheat +++ b/tests/no_prompt_cheats/cases.cheat @@ -101,5 +101,5 @@ $ wallpaper_folder: echo "/wallpapers" % test, third -; this cheathsheet doesnt have any commands +; this cheathsheet doesn't have any commands $ country: echo "br" \ No newline at end of file