diff options
author | Ryan Russell | 2022-06-01 17:01:37 +0000 |
---|---|---|
committer | GitHub | 2022-06-01 17:01:37 +0000 |
commit | ae12c58f0ff924e9cc512f0368e5fca858566cdd (patch) | |
tree | 62bde8852872881444465558b3fc576335c8e420 /helix-core/src/history.rs | |
parent | fc666db6b99a8baab0acf3791f9965e7cb2be9e1 (diff) |
Improve Readability (#2639)
Diffstat (limited to 'helix-core/src/history.rs')
-rw-r--r-- | helix-core/src/history.rs | 6 |
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. |