chore: fix typos from recent typos-cli (#4329)
This commit is contained in:
parent
ca6f523924
commit
bd98561b38
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue