Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
  • Loading branch information
pascalkuthe and the-mikedavis committed Jan 24, 2023
1 parent 1428806 commit 22b23b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 22b23b4

Please sign in to comment.