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 #81

Open
wants to merge 1 commit into
base: 0.3.8
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 examples/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
// that can be found in the LICENSE file.

fn main() {
println!("{}", env!("CARGO_PKG_VERSION"));
println!("{}", env!("CARGO_PKG_VERSION"));
}
8 changes: 4 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ impl<'a> App<'a> {
}

// Common input key
// h ... toggel help window.
// h ... toggle help window.
Event::Key(KeyEvent {
code: KeyCode::Char('h'),
modifiers: KeyModifiers::NONE,
Expand Down Expand Up @@ -714,7 +714,7 @@ impl<'a> App<'a> {
modifiers: KeyModifiers::NONE,
}) => self.input_key_down(),

// h ... toggel help window.
// h ... toggle help window.
Event::Key(KeyEvent {
code: KeyCode::Char('h'),
modifiers: KeyModifiers::NONE,
Expand Down Expand Up @@ -803,8 +803,8 @@ impl<'a> App<'a> {
// Not currently used.
///
//fn get_input_mouse_event(&mut self, mouse_event: &MouseEvent) {
// let mouse_event_tupple = (mouse_event.kind, mouse_event.modifiers);
// if let (MouseEventKind::Down(MouseButton::Left), KeyModifiers::NONE) = mouse_event_tupple {
// let mouse_event_tuple = (mouse_event.kind, mouse_event.modifiers);
// if let (MouseEventKind::Down(MouseButton::Left), KeyModifiers::NONE) = mouse_event_tuple {
// self.mouse_click_left(mouse_event.column, mouse_event.row);
// }
//}
Expand Down
2 changes: 1 addition & 1 deletion src/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn gen_help_text<'a>() -> Vec<Spans<'a>> {
Spans::from(" - [F3] key ... change output mode as output(stdout/stderr set.)"),
// change use area
Spans::from(" - [Tab] key ... toggle current area at history or watch."),
// filter text inpu
// filter text input
Spans::from(" - [/] key ... filter history by string."),
Spans::from(" - [*] key ... filter history by regex."),
Spans::from(" - [ESC] key ... unfiltering."),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn build_app() -> clap::Command<'static> {
// [-b,--batch]
// .arg(
// Arg::with_name("batch")
// .help("output exection results to stdout")
// .help("output execution results to stdout")
// .short('b')
// .long("batch"),
// )
Expand Down
4 changes: 2 additions & 2 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ fn get_word_diff_addline<'a>(
match before_diffs {
// Change Line.
&Difference::Rem(ref before_diff_data) => {
// Craete Changeset at `Addlind` and `Before Diff Data`.
// Create Changeset at `Addlind` and `Before Diff Data`.
let Changeset { diffs, .. } = Changeset::new(before_diff_data, &diff_data, " ");

//
Expand Down Expand Up @@ -777,7 +777,7 @@ fn get_word_diff_remline<'a>(
match after_diffs {
// Change Line.
&Difference::Add(ref after_diffs_data) => {
// Craete Changeset at `Addlind` and `Before Diff Data`.
// Create Changeset at `Addlind` and `Before Diff Data`.
let Changeset { diffs, .. } = Changeset::new(&diff_data, after_diffs_data, " ");

//
Expand Down