Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

Expand Down
4 changes: 2 additions & 2 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
}
Expand Down
4 changes: 2 additions & 2 deletions src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down