summaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r--helix-view/src/document.rs4
1 files changed, 2 insertions, 2 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)
}