Update typos-cli to v1.24.6. Add scripts/check-spelling. Fix typos (#17961)
This commit is contained in:
parent
447a5d6e6e
commit
c28b22d1cf
10 changed files with 20 additions and 18 deletions
|
@ -3025,7 +3025,7 @@ impl BufferSnapshot {
|
|||
let mut start = text.len();
|
||||
let end = start + buffer_range.len();
|
||||
|
||||
// When multiple names are captured, then the matcheable text
|
||||
// When multiple names are captured, then the matchable text
|
||||
// includes the whitespace in between the names.
|
||||
if !name_ranges.is_empty() {
|
||||
start -= 1;
|
||||
|
|
|
@ -382,7 +382,7 @@ async fn test_normalize_whitespace(cx: &mut gpui::TestAppContext) {
|
|||
let buffer = cx.new_model(|cx| Buffer::local(text, cx));
|
||||
|
||||
// Spawn a task to format the buffer's whitespace.
|
||||
// Pause so that the foratting task starts running.
|
||||
// Pause so that the formatting task starts running.
|
||||
let format = buffer.update(cx, |buffer, cx| buffer.remove_trailing_whitespace(cx));
|
||||
smol::future::yield_now().await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue