Skip to content

Commit 61bd817

Browse files
growfrowkchibisov
authored andcommitted
chore: fix some typos in comments (#3635)
Signed-off-by: growfrow <[email protected]>
1 parent c04c113 commit 61bd817

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/platform_impl/linux/wayland/window/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub struct Window {
7272
/// Source to wake-up the event-loop for window requests.
7373
event_loop_awakener: calloop::ping::Ping,
7474

75-
/// The event sink to deliver sythetic events.
75+
/// The event sink to deliver synthetic events.
7676
window_events_sink: Arc<Mutex<EventSink>>,
7777
}
7878

src/platform_impl/linux/x11/event_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ impl EventProcessor {
17781778
None => return,
17791779
};
17801780

1781-
// Send the keys using the sythetic state to not alter the main state.
1781+
// Send the keys using the synthetic state to not alter the main state.
17821782
let mut xkb_state = match XkbState::new_x11(xcb, keymap) {
17831783
Some(xkb_state) => xkb_state,
17841784
None => return,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl XConnection {
180180

181181
// Position relative to root window.
182182
// With rare exceptions, this is the position of a nested window. Cases where the window
183-
// isn't nested are outlined in the comments throghout this function, but in addition to
183+
// isn't nested are outlined in the comments throughout this function, but in addition to
184184
// that, fullscreen windows often aren't nested.
185185
let (inner_y_rel_root, child) = {
186186
let coords = self

src/platform_impl/macos/event_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl PanicInfo {
5353
result
5454
}
5555

56-
/// Overwrites the curret state if the current state is not panicking
56+
/// Overwrites the current state if the current state is not panicking
5757
pub fn set_panic(&self, p: Box<dyn Any + Send + 'static>) {
5858
if !self.is_panicking() {
5959
self.inner.set(Some(p));

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// A poly-fill for `lazy_cell`
2-
// Replace with std::sync::LazyLock when https://github.com/rust-lang/rust/issues/109736 is stablized.
2+
// Replace with std::sync::LazyLock when https://github.com/rust-lang/rust/issues/109736 is stabilized.
33

44
// This isn't used on every platform, which can come up as dead code warnings.
55
#![allow(dead_code)]

0 commit comments

Comments
 (0)