Skip to content

Commit

Permalink
Fix typos (#2375)
Browse files Browse the repository at this point in the history
  • Loading branch information
grovesNL committed Jul 15, 2022
1 parent 1091a8b commit 430a49e
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/dpi.rs
Expand Up @@ -77,7 +77,7 @@
//! currently uses a three-pronged approach:
//! + Use the value in the `WINIT_X11_SCALE_FACTOR` environment variable, if present.
//! + If not present, use the value set in `Xft.dpi` in Xresources.
//! + Otherwise, calcuate the scale factor based on the millimeter monitor dimensions provided by XRandR.
//! + Otherwise, calculate the scale factor based on the millimeter monitor dimensions provided by XRandR.
//!
//! If `WINIT_X11_SCALE_FACTOR` is set to `randr`, it'll ignore the `Xft.dpi` field and use the
//! XRandR scaling method. Generally speaking, you should try to configure the standard system
Expand Down
2 changes: 1 addition & 1 deletion src/event_loop.rs
Expand Up @@ -383,7 +383,7 @@ impl<T> fmt::Display for EventLoopClosed<T> {

impl<T: fmt::Debug> error::Error for EventLoopClosed<T> {}

/// Fiter controlling the propagation of device events.
/// Filter controlling the propagation of device events.
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub enum DeviceEventFilter {
/// Always filter out device events.
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/android/mod.rs
Expand Up @@ -881,7 +881,7 @@ impl MonitorHandle {
}

pub fn refresh_rate_millihertz(&self) -> Option<u32> {
// FIXME no way to get real refrsh rate for now.
// FIXME no way to get real refresh rate for now.
None
}

Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/linux/wayland/event_loop/mod.rs
Expand Up @@ -64,7 +64,7 @@ pub struct EventLoopWindowTarget<T> {

/// Theme manager to manage cursors.
///
/// It's being shared amoung all windows to avoid loading
/// It's being shared between all windows to avoid loading
/// multiple similar themes.
pub theme_manager: ThemeManager,

Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/linux/wayland/window/mod.rs
Expand Up @@ -90,7 +90,7 @@ impl Window {
.create_surface_with_scale_callback(move |scale, surface, mut dispatch_data| {
let winit_state = dispatch_data.get::<WinitState>().unwrap();

// Get the window that receiced the event.
// Get the window that received the event.
let window_id = super::make_wid(&surface);
let mut window_update = winit_state.window_updates.get_mut(&window_id).unwrap();

Expand Down
6 changes: 3 additions & 3 deletions src/platform_impl/linux/x11/ime/input_method.rs
Expand Up @@ -180,10 +180,10 @@ impl PotentialInputMethod {
}

// By logging this struct, you get a sequential listing of every locale modifier tried, where it
// came from, and if it succceeded.
// came from, and if it succeeded.
#[derive(Debug, Clone)]
pub struct PotentialInputMethods {
// On correctly configured systems, the XMODIFIERS environemnt variable tells us everything we
// On correctly configured systems, the XMODIFIERS environment variable tells us everything we
// need to know.
xmodifiers: Option<PotentialInputMethod>,
// We have some standard options at our disposal that should ostensibly always work. For users
Expand Down Expand Up @@ -213,7 +213,7 @@ impl PotentialInputMethods {
// that case, we get `None` and end up skipping ahead to the next method.
xmodifiers,
fallbacks: [
// This is a standard input method that supports compose equences, which should
// This is a standard input method that supports compose sequences, which should
// always be available. `@im=none` appears to mean the same thing.
PotentialInputMethod::from_str("@im=local"),
// This explicitly specifies to use the implementation-dependent default, though
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/linux/x11/mod.rs
Expand Up @@ -457,7 +457,7 @@ impl<T: 'static> EventLoop<T> {
// must do this because during the execution of the iteration we sometimes wake
// the mio waker, and if the waker is already awaken before we call poll(),
// then poll doesn't block, but it returns immediately. This caused the event
// loop to run continously even if the control_flow was `Wait`
// loop to run continuously even if the control_flow was `Wait`
continue;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/linux/x11/util/window_property.rs
Expand Up @@ -58,7 +58,7 @@ impl XConnection {
property,
// This offset is in terms of 32-bit chunks.
offset,
// This is the quanity of 32-bit chunks to receive at once.
// This is the quantity of 32-bit chunks to receive at once.
PROPERTY_BUFFER_SIZE,
ffi::False,
property_type,
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/web/event_loop/runner.rs
Expand Up @@ -65,7 +65,7 @@ impl<T: 'static> Runner<T> {
}
}

/// Returns the cooresponding `StartCause` for the current `state`, or `None`
/// Returns the corresponding `StartCause` for the current `state`, or `None`
/// when in `Exit` state.
fn maybe_start_cause(&self) -> Option<StartCause> {
Some(match self.state {
Expand Down
2 changes: 1 addition & 1 deletion src/window.rs
Expand Up @@ -625,7 +625,7 @@ impl Window {
self.window.set_visible(visible)
}

/// Gets the window's current vibility state.
/// Gets the window's current visibility state.
///
/// `None` means it couldn't be determined, so it is not recommended to use this to drive your rendering backend.
///
Expand Down

0 comments on commit 430a49e

Please sign in to comment.