aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorchunghha2022-04-27 19:21:20 +0000
committerGitHub2022-04-27 19:21:20 +0000
commit3a398eec56c907f9d0f166e77242eb13ded229bc (patch)
tree4411668f181c0a1ae31b6599a50c196bccd709e6 /helix-view
parent2e46961886cb40b45a03a91c59823b0e437a9867 (diff)
fix typos (#2304)
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs4
-rw-r--r--helix-view/src/view.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index f4b4dc35..9c3853c8 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -648,7 +648,7 @@ impl Document {
.clone()
// Map through changes
.map(transaction.changes())
- // Ensure all selections accross all views still adhere to invariants.
+ // Ensure all selections across all views still adhere to invariants.
.ensure_invariants(self.text.slice(..));
}
@@ -752,7 +752,7 @@ impl Document {
self.undo_redo_impl(view_id, true)
}
- /// Redo the last modification to the [`Document`]. Returns whether the redo was sucessful.
+ /// Redo the last modification to the [`Document`]. Returns whether the redo was successful.
pub fn redo(&mut self, view_id: ViewId) -> bool {
self.undo_redo_impl(view_id, false)
}
diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs
index 3450da9b..091d1f2e 100644
--- a/helix-view/src/view.rs
+++ b/helix-view/src/view.rs
@@ -79,7 +79,7 @@ pub struct View {
// uses two docs because we want to be able to swap between the
// two last modified docs which we need to manually keep track of
pub last_modified_docs: [Option<DocumentId>; 2],
- /// used to store previous selections of tree-sitter objecs
+ /// used to store previous selections of tree-sitter objects
pub object_selections: Vec<Selection>,
pub gutters: Vec<(Gutter, usize)>,
}