diff --git a/src/platform/x11.rs b/src/platform/x11.rs index afeb12c2..1b0f661c 100644 --- a/src/platform/x11.rs +++ b/src/platform/x11.rs @@ -46,7 +46,7 @@ pub enum WindowType { /// This should be used on the windows that are popped up by combo boxes. /// This property is typically used on override-redirect windows. Combo, - /// This indicates the the window is being dragged. + /// This indicates the window is being dragged. /// This property is typically used on override-redirect windows. Dnd, /// This is a normal, top-level window. diff --git a/src/platform_impl/linux/x11/ime/inner.rs b/src/platform_impl/linux/x11/ime/inner.rs index ddff12fb..fba2cf46 100644 --- a/src/platform_impl/linux/x11/ime/inner.rs +++ b/src/platform_impl/linux/x11/ime/inner.rs @@ -26,7 +26,7 @@ pub(crate) struct ImeInner { // WARNING: this is initially zeroed! pub destroy_callback: ffi::XIMCallback, pub event_sender: ImeEventSender, - // Indicates whether or not the the input method was destroyed on the server end + // Indicates whether or not the input method was destroyed on the server end // (i.e. if ibus/fcitx/etc. was terminated/restarted) pub is_destroyed: bool, pub is_fallback: bool, diff --git a/src/platform_impl/windows/event_loop.rs b/src/platform_impl/windows/event_loop.rs index 50bf022e..f7d91caa 100644 --- a/src/platform_impl/windows/event_loop.rs +++ b/src/platform_impl/windows/event_loop.rs @@ -386,7 +386,7 @@ impl EventLoop { /// Fetch the next MSG either via PeekMessage or GetMessage depending on whether the /// requested timeout is `ZERO` (and so we don't want to block) /// - /// Returns `None` if if no MSG was read, else a `Continue` or `Exit` status + /// Returns `None` if no MSG was read, else a `Continue` or `Exit` status fn wait_for_msg(msg: &mut MSG, timeout: Option) -> Option { if timeout == Some(Duration::ZERO) { unsafe {