From a588a7dd4d1667592242642f9f965e0cdb41c950 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 31 Jan 2024 16:21:33 -0500 Subject: [PATCH] Fix some typos in comments (#7169) This PR fixes a couple typos I found in some comments/doc comments. Release Notes: - N/A --- crates/command_palette/src/command_palette.rs | 2 +- crates/editor/src/editor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/command_palette/src/command_palette.rs b/crates/command_palette/src/command_palette.rs index 6851f260e7..5e7f5938ef 100644 --- a/crates/command_palette/src/command_palette.rs +++ b/crates/command_palette/src/command_palette.rs @@ -137,7 +137,7 @@ impl Clone for Command { /// Hit count for each command in the palette. /// We only account for commands triggered directly via command palette and not by e.g. keystrokes because -/// if an user already knows a keystroke for a command, they are unlikely to use a command palette to look for it. +/// if a user already knows a keystroke for a command, they are unlikely to use a command palette to look for it. #[derive(Default)] struct HitCounts(HashMap); diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 47731b510d..decde1e8b8 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2310,7 +2310,7 @@ impl Editor { let mut bracket_pair = None; let mut is_bracket_pair_start = false; if !text.is_empty() { - // `text` can be empty when an user is using IME (e.g. Chinese Wubi Simplified) + // `text` can be empty when a user is using IME (e.g. Chinese Wubi Simplified) // and they are removing the character that triggered IME popup. for (pair, enabled) in scope.brackets() { if enabled && pair.close && pair.start.ends_with(text.as_ref()) {