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

chore: fix some typos in comments #3635

Merged
merged 3 commits into from
Apr 27, 2024
Merged
Changes from 1 commit
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
Next Next commit
chore: fix some typos in comments
Signed-off-by: growfrow <[email protected]>
growfrow committed Apr 18, 2024

Verified

This commit was signed with the committer’s verified signature.
mbklein Michael B. Klein
commit d3759dbb3bffacaedb88e7ccec6fbde52fe8a992
2 changes: 1 addition & 1 deletion src/platform_impl/linux/wayland/window/mod.rs
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ pub struct Window {
/// Source to wake-up the event-loop for window requests.
event_loop_awakener: calloop::ping::Ping,

/// The event sink to deliver sythetic events.
/// The event sink to deliver synthetic events.
window_events_sink: Arc<Mutex<EventSink>>,
}

2 changes: 1 addition & 1 deletion src/platform_impl/linux/x11/event_processor.rs
Original file line number Diff line number Diff line change
@@ -1907,7 +1907,7 @@ impl EventProcessor {
None => return,
};

// Send the keys using the sythetic state to not alter the main state.
// Send the keys using the synthetic state to not alter the main state.
let mut xkb_state = match XkbState::new_x11(xcb, keymap) {
Some(xkb_state) => xkb_state,
None => return,
2 changes: 1 addition & 1 deletion src/platform_impl/linux/x11/util/geometry.rs
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ impl XConnection {

// Position relative to root window.
// With rare exceptions, this is the position of a nested window. Cases where the window
// isn't nested are outlined in the comments throghout this function, but in addition to
// isn't nested are outlined in the comments throughout this function, but in addition to
// that, fullscreen windows often aren't nested.
let (inner_y_rel_root, child) = {
let coords = self
2 changes: 1 addition & 1 deletion src/platform_impl/macos/event_loop.rs
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ impl PanicInfo {
self.inner.set(inner);
result
}
/// Overwrites the curret state if the current state is not panicking
/// Overwrites the current state if the current state is not panicking
pub fn set_panic(&self, p: Box<dyn Any + Send + 'static>) {
if !self.is_panicking() {
self.inner.set(Some(p));
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// A poly-fill for `lazy_cell`
// Replace with std::sync::LazyLock when https://github.com/rust-lang/rust/issues/109736 is stablized.
// Replace with std::sync::LazyLock when https://github.com/rust-lang/rust/issues/109736 is stabilized.

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