From 07306f04533ecd809d5528aaecb2359aa456b472 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sun, 9 Apr 2023 11:28:15 +0800 Subject: [PATCH] Fix typos Found via `typos --format brief` --- readme.md | 2 +- src/command.rs | 4 ++-- src/theme.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index fb1f818..a00312c 100644 --- a/readme.md +++ b/readme.md @@ -65,7 +65,7 @@ Install [`dijo-bin`](https://aur.archlinux.org/packages/dijo-bin/) or [`dijo-git #### Windows ``` -# the default termion backend dosen't run on windows yet +# the default termion backend doesn't run on windows yet $ cargo install --no-default-features --features "crossterm-backend" ``` diff --git a/src/command.rs b/src/command.rs index bfd09d8..40e3516 100644 --- a/src/command.rs +++ b/src/command.rs @@ -81,7 +81,7 @@ pub fn open_command_window(s: &mut Cursive) { } fn call_on_app(s: &mut Cursive, input: &str) { - // things to do after recieving the command + // things to do after receiving the command // 1. parse the command // 2. clean existing command messages // 3. remove the command window @@ -175,7 +175,7 @@ impl fmt::Display for CommandLineError { CommandLineError::InvalidCommand(s) => write!(f, "Invalid command: `{}`", s), CommandLineError::InvalidArg(p) => write!(f, "Invalid argument at position {}", p), CommandLineError::NotEnoughArgs(s, n) => { - write!(f, "Command `{}` requires atleast {} argument(s)!", s, n) + write!(f, "Command `{}` requires at least {} argument(s)!", s, n) } CommandLineError::InvalidGoal(s) => write!(f, "Invalid goal expression: `{}`", s), } diff --git a/src/theme.rs b/src/theme.rs index 879584c..c86e81f 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -2,7 +2,7 @@ use cursive::theme::Color::{self, *}; use cursive::theme::PaletteColor::*; use cursive::theme::{BorderStyle, Palette, Theme}; -pub fn pallete_gen() -> Palette { +pub fn palette_gen() -> Palette { let mut p = Palette::default(); p[Background] = TerminalDefault; p[Shadow] = TerminalDefault; @@ -21,7 +21,7 @@ pub fn theme_gen() -> Theme { let mut t = Theme::default(); t.shadow = false; t.borders = BorderStyle::None; - t.palette = pallete_gen(); + t.palette = palette_gen(); return t; }