diff --git a/winit-core/src/window.rs b/winit-core/src/window.rs index c8f678c1..2618e2dc 100644 --- a/winit-core/src/window.rs +++ b/winit-core/src/window.rs @@ -1649,7 +1649,7 @@ pub struct ImeSurroundingText { impl ImeSurroundingText { /// The maximum size of the text excerpt. pub const MAX_TEXT_BYTES: usize = 4000; - /// Defines the text surroundng the cursor and the selection within it. + /// Defines the text surrounding the cursor and the selection within it. /// /// `text`: An excerpt of the text present in the text input field, excluding preedit. /// It must be limited to 4000 bytes due to backend constraints. diff --git a/winit-x11/src/ime/context.rs b/winit-x11/src/ime/context.rs index 9d6abad5..35d1a4de 100644 --- a/winit-x11/src/ime/context.rs +++ b/winit-x11/src/ime/context.rs @@ -94,7 +94,7 @@ extern "C" fn preedit_draw_callback( call_data.chg_first as usize..(call_data.chg_first + call_data.chg_length) as usize; if chg_range.start > client_data.text.len() || chg_range.end > client_data.text.len() { tracing::warn!( - "invalid chg range: buffer length={}, but chg_first={} chg_lengthg={}", + "invalid chg range: buffer length={}, but chg_first={} chg_length={}", client_data.text.len(), call_data.chg_first, call_data.chg_length