diff --git a/src/cmd/import.rs b/src/cmd/import.rs index f13381cc..ac0777a9 100644 --- a/src/cmd/import.rs +++ b/src/cmd/import.rs @@ -37,7 +37,7 @@ fn import_autojump(db: &mut Database, buffer: &str) -> Result<()> { let mut rank = rank.parse::().with_context(|| format!("invalid rank: {rank}"))?; // Normalize the rank using a sigmoid function. Don't import actual ranks from // autojump, since its scoring algorithm is very different and might - // take a while to get normalized. + // take a while to normalize. rank = sigmoid(rank); db.add_unchecked(path, rank, 0); diff --git a/src/db/mod.rs b/src/db/mod.rs index d459f39a..86808f25 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -76,7 +76,7 @@ impl Database { } /// Creates a new directory. This will create a duplicate entry if this - /// directory is always in the database, it is expected that the user either + /// directory is already in the database, it is expected that the user either /// does a check before calling this, or calls `dedup()` afterward. pub fn add_unchecked(&mut self, path: impl AsRef + Into, rank: Rank, now: Epoch) { self.with_dirs_mut(|dirs| { diff --git a/src/db/stream.rs b/src/db/stream.rs index 4b06193b..24c84e0a 100644 --- a/src/db/stream.rs +++ b/src/db/stream.rs @@ -70,7 +70,7 @@ impl<'a> Stream<'a> { } // The logic here is reversed - if we resolve symlinks when adding entries to - // the database, we should not return symlinks when querying back from + // the database, we should not return symlinks when querying from // the database. let resolver = if self.options.resolve_symlinks { fs::symlink_metadata } else { fs::metadata }; diff --git a/src/shell.rs b/src/shell.rs index 37fe1a24..8812b1c8 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -100,7 +100,7 @@ mod tests { let mut source = String::new(); // Filter out lines using edit:*, since those functions are only available in - // the interactive editor. + // interactive editor mode. for line in Elvish(&opts).render().unwrap().lines().filter(|line| !line.contains("edit:")) { source.push_str(line); source.push('\n');