mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
chore: fix typos from recent typos-cli (#4329)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user