From 73ddc335b2a80a671bc2d970e4804431448d7f2e Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Fri, 8 Jul 2022 04:55:53 +0800 Subject: [PATCH] Fix typos (#1355) --- .github/workflows/build.yml | 4 ++-- src/main.rs | 2 +- src/window/keyboard_manager.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca7756e..fa59886 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,10 +39,10 @@ jobs: # Pay attention not to break BUILD stage of a test, # when tests are failing at BUILD stage, everything after -- is ignored, # and no json output will be generated. - # Becouse those arguments is passed to compiled test binary. And it is failed to compile. + # Because those arguments is passed to compiled test binary. And it is failed to compile. cargo test -- -Z unstable-options --format json > results.json # This and `set -eo pipefail` for MacOS/Linux - # is added, becouse without it pipe will eat exit status. + # is added, because without it pipe will eat exit status. # Docs are stating that it should work by default, but it does not. # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference # Oh, it still does not fail on Windows. ¯\_(ツ)_/¯ diff --git a/src/main.rs b/src/main.rs index 62ac71f..924b178 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,7 +75,7 @@ fn main() { // The editor is responsible for processing and transforming redraw events into something // more readily renderable. Ligature support and multi window management requires some // significant preprocessing of the redraw events in order to capture what exactly should get - // drawn where. Futher this step takes a bit of processing power to accomplish, so it is done + // drawn where. Further this step takes a bit of processing power to accomplish, so it is done // on it's own thread. Ideally heavily computationally expensive tasks should be done in the // editor. // diff --git a/src/window/keyboard_manager.rs b/src/window/keyboard_manager.rs index f63d071..e61ce36 100644 --- a/src/window/keyboard_manager.rs +++ b/src/window/keyboard_manager.rs @@ -70,7 +70,7 @@ impl KeyboardManager { event: WindowEvent::ModifiersChanged(modifiers), .. } => { - // Record the modifer states so that we can properly add them to the keybinding + // Record the modifier states so that we can properly add them to the keybinding // text self.shift = modifiers.shift_key(); self.ctrl = modifiers.control_key();