Skip to content

Commit 7b2c9d4

Browse files
Fix typos from updated typos tool (#4213)
1 parent 587ade8 commit 7b2c9d4

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Winit is designed to be a low-level brick in a hierarchy of libraries. Consequen
3333
show something on the window you need to use the platform-specific getters provided by winit, or
3434
another library.
3535

36-
## CONTRIBUING
36+
## CONTRIBUTING
3737

3838
For contributing guidelines see [CONTRIBUTING.md](./CONTRIBUTING.md).
3939

src/keyboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ pub enum NamedKey {
12241224
Dimmer,
12251225
/// Swap video sources. (`VK_DISPLAY_SWAP`)
12261226
DisplaySwap,
1227-
/// Select Digital Video Rrecorder. (`KEYCODE_DVR`)
1227+
/// Select Digital Video Recorder. (`KEYCODE_DVR`)
12281228
DVR,
12291229
/// Exit the current application. (`VK_EXIT`)
12301230
Exit,

src/platform/web.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ pub enum Orientation {
656656
Portrait,
657657
}
658658

659-
/// Screen orientation lock options. Reoresents which orientations a user can use.
659+
/// Screen orientation lock options. Represents which orientations a user can use.
660660
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
661661
pub enum OrientationLock {
662662
/// User is free to use any orientation.

src/platform_impl/linux/common/xkb/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ impl<'a, 'b> KeyEventResults<'a, 'b> {
325325

326326
// The current behaviour makes it so composing a character overrides attempts to input a
327327
// control character with the `Ctrl` key. We can potentially add a configuration option
328-
// if someone specifically wants the oppsite behaviour.
328+
// if someone specifically wants the opposite behaviour.
329329
pub fn text_with_all_modifiers(&mut self) -> Option<SmolStr> {
330330
match self.composed_text() {
331331
Ok(text) => text,

src/platform_impl/linux/wayland/seat/pointer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl PointerHandler for WinitState {
215215
pointer_data.phase = phase;
216216

217217
// Mice events have both pixel and discrete delta's at the same time. So prefer
218-
// the descrite values if they are present.
218+
// the discrete values if they are present.
219219
let delta = if has_discrete_scroll {
220220
// NOTE: Wayland sign convention is the inverse of winit.
221221
MouseScrollDelta::LineDelta(

src/platform_impl/linux/x11/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ where
5151
}
5252

5353
impl XConnection {
54-
// This is impoartant, so pay attention!
54+
// This is important, so pay attention!
5555
// Xlib has an output buffer, and tries to hide the async nature of X from you.
5656
// This buffer contains the requests you make, and is flushed under various circumstances:
5757
// 1. `XPending`, `XNextEvent`, and `XWindowEvent` flush "as needed"

src/platform_impl/windows/keyboard.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ impl KeyEventBuilder {
211211
.unwrap_or(false);
212212
if more_char_coming {
213213
// No need to produce an event just yet, because there are still more
214-
// characters that need to appended to this keyobard
215-
// event
214+
// characters that need to be appended to this keyboard event
216215
MatchResult::TokenToRemove(pending_token)
217216
} else {
218217
let mut event_info = self.event_info.lock().unwrap();
@@ -333,8 +332,8 @@ impl KeyEventBuilder {
333332
// 1. If caps-lock is *not* held down but *is* active, then we have to synthesize all
334333
// printable keys, respecting the caps-lock state.
335334
// 2. If caps-lock is held down, we could choose to synthesize its keypress after every
336-
// other key, in which case all other keys *must* be sythesized as if the caps-lock state
337-
// was be the opposite of what it currently is.
335+
// other key, in which case all other keys *must* be synthesized as if the caps-lock
336+
// state was be the opposite of what it currently is.
338337
// --
339338
// For the sake of simplicity we are choosing to always synthesize
340339
// caps-lock first, and always use the current caps-lock state

src/platform_impl/windows/raw_input.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,16 @@ pub fn get_keyboard_physical_key(keyboard: RAWKEYBOARD) -> Option<PhysicalKey> {
225225
if scancode == 0xe11d || scancode == 0xe02a {
226226
// At the hardware (or driver?) level, pressing the Pause key is equivalent to pressing
227227
// Ctrl+NumLock.
228-
// This equvalence means that if the user presses Pause, the keyboard will emit two
228+
// This equivalence means that if the user presses Pause, the keyboard will emit two
229229
// subsequent keypresses:
230230
// 1, 0xE11D - Which is a left Ctrl (0x1D) with an extension flag (0xE100)
231231
// 2, 0x0045 - Which on its own can be interpreted as Pause
232232
//
233233
// There's another combination which isn't quite an equivalence:
234-
// PrtSc used to be Shift+Asterisk. This means that on some keyboards, presssing
234+
// PrtSc used to be Shift+Asterisk. This means that on some keyboards, pressing
235235
// PrtSc (print screen) produces the following sequence:
236236
// 1, 0xE02A - Which is a left shift (0x2A) with an extension flag (0xE000)
237-
// 2, 0xE037 - Which is a numpad multiply (0x37) with an exteion flag (0xE000). This on
237+
// 2, 0xE037 - Which is a numpad multiply (0x37) with an extension flag (0xE000). This on
238238
// its own it can be interpreted as PrtSc
239239
//
240240
// For this reason, if we encounter the first keypress, we simply ignore it, trusting

0 commit comments

Comments
 (0)