aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/history.rs
diff options
context:
space:
mode:
authorchunghha2022-04-27 19:21:20 +0000
committerGitHub2022-04-27 19:21:20 +0000
commit3a398eec56c907f9d0f166e77242eb13ded229bc (patch)
tree4411668f181c0a1ae31b6599a50c196bccd709e6 /helix-core/src/history.rs
parent2e46961886cb40b45a03a91c59823b0e437a9867 (diff)
fix typos (#2304)
Diffstat (limited to 'helix-core/src/history.rs')
-rw-r--r--helix-core/src/history.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-core/src/history.rs b/helix-core/src/history.rs
index bb95213c..3f324e34 100644
--- a/helix-core/src/history.rs
+++ b/helix-core/src/history.rs
@@ -22,10 +22,10 @@ use std::time::{Duration, Instant};
///
/// The current revision is the one currently displayed in the buffer.
///
-/// Commiting a new revision to the history will update the last child of the
+/// Committing a new revision to the history will update the last child of the
/// current revision, and push a new revision to the end of the vector.
///
-/// Revisions are commited with a timestamp. :earlier and :later can be used
+/// Revisions are committed with a timestamp. :earlier and :later can be used
/// to jump to the closest revision to a moment in time relative to the timestamp
/// of the current revision plus (:later) or minus (:earlier) the duration
/// given to the command. If a single integer is given, the editor will instead
@@ -33,7 +33,7 @@ use std::time::{Duration, Instant};
///
/// Limitations:
/// * Changes in selections currently don't commit history changes. The selection
-/// will only be updated to the state after a commited buffer change.
+/// will only be updated to the state after a committed buffer change.
/// * The vector of history revisions is currently unbounded. This might
/// cause the memory consumption to grow significantly large during long
/// editing sessions.
@@ -288,7 +288,7 @@ pub enum UndoKind {
TimePeriod(std::time::Duration),
}
-/// A subset of sytemd.time time span syntax units.
+/// A subset of systemd.time time span syntax units.
const TIME_UNITS: &[(&[&str], &str, u64)] = &[
(&["seconds", "second", "sec", "s"], "seconds", 1),
(&["minutes", "minute", "min", "m"], "minutes", 60),