From 22b23b438756c58697ca628e56a7d4b8475de827 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Tue, 24 Jan 2023 19:41:40 +0100 Subject: [PATCH] fix typos Co-authored-by: Michael Davis --- helix-term/src/commands.rs | 4 ++-- helix-view/src/editor.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 452a66180f082..58435d7c8b1e6 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1960,9 +1960,9 @@ fn global_search(cx: &mut Context) { let result = if let Some((_, doc)) = doc { // there is already a buffer for this file // search the buffer instead of the file because it's faster - // and captures new edits without requireing a save + // and captures new edits without requiring a save if searcher.multi_line_with_matcher(&matcher) { - // in this case a continous buffer is required + // in this case a continuous buffer is required // convert the rope to a string let text = doc.to_string(); searcher.search_slice(&matcher, text.as_bytes(), sink) diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index fa6408b6733ac..92fc4d7c509a6 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -757,7 +757,7 @@ pub struct Breakpoint { use futures_util::stream::{Flatten, Once}; -/// Threadsave (Sync + Send) iteration over document text (and path) +/// Thread-safe (Sync + Send) iteration over document text (and path) /// This is necessary because the editor and the document contain /// interior mutability which makes it impossible to send them across threads. /// However the document text itself (ropes) is perfectly fine to send across @@ -1441,7 +1441,7 @@ impl Editor { self.documents.values_mut() } - /// A thread save iterator over the text of all documents + /// A thread-safe iterator over the text of all documents #[inline] pub fn shared_documents(&self) -> SharedDocuments { SharedDocuments(self.documents.values())