summaryrefslogtreecommitdiff
path: root/helix-core/src/history.rs
diff options
context:
space:
mode:
authorRyan Russell2022-06-01 17:01:37 +0000
committerGitHub2022-06-01 17:01:37 +0000
commitae12c58f0ff924e9cc512f0368e5fca858566cdd (patch)
tree62bde8852872881444465558b3fc576335c8e420 /helix-core/src/history.rs
parentfc666db6b99a8baab0acf3791f9965e7cb2be9e1 (diff)
Improve Readability (#2639)
Diffstat (limited to 'helix-core/src/history.rs')
-rw-r--r--helix-core/src/history.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-core/src/history.rs b/helix-core/src/history.rs
index 3f324e34..b608097c 100644
--- a/helix-core/src/history.rs
+++ b/helix-core/src/history.rs
@@ -177,7 +177,7 @@ impl History {
}
}
- /// List of nodes on the way from `n` to 'a`. Doesn`t include `a`.
+ /// List of nodes on the way from `n` to 'a`. Doesn't include `a`.
/// Includes `n` unless `a == n`. `a` must be an ancestor of `n`.
fn path_up(&self, mut n: usize, a: usize) -> Vec<usize> {
let mut path = Vec::new();
@@ -546,8 +546,8 @@ mod test {
// Units are validated.
assert_eq!(
- "1 millenium".parse::<UndoKind>(),
- Err("incorrect time unit: millenium".to_string())
+ "1 millennium".parse::<UndoKind>(),
+ Err("incorrect time unit: millennium".to_string())
);
// Units can't be specified twice.