Skip to content

Commit

Permalink
fix: minor typos (#248)
Browse files Browse the repository at this point in the history
Fix minor typos in doc comments.
  • Loading branch information
a-kenji authored Sep 22, 2023
1 parent 1cf4ef3 commit 654ecef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn parse_path(s: &str) -> anyhow::Result<PathBuf> {
};
assert!(cwd.is_absolute());

// TODO: Include validation for incorrect paths or caracters
// TODO: Include validation for incorrect paths or characters
let path = Path::new(s);

// Make sure the path is an absolute path.
Expand Down
4 changes: 2 additions & 2 deletions src/eval_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl CacheManifest {
}
}

/// Seralizes back the manifest into place.
/// Serializes back the manifest into place.
pub fn try_write(self, cache_dir: &Path, treefmt_toml: &Path) -> Result<()> {
let manifest_path = get_manifest_path(cache_dir, treefmt_toml);
debug!("cache: writing to {}", manifest_path.display());
Expand All @@ -92,7 +92,7 @@ impl CacheManifest {
Ok(())
}

/// Seralizes back the manifest into place.
/// Serializes back the manifest into place.
pub fn write(self, cache_dir: &Path, treefmt_toml: &Path) {
if let Err(err) = self.try_write(cache_dir, treefmt_toml) {
warn!("cache: failed to write to disk: {}", err);
Expand Down

0 comments on commit 654ecef

Please sign in to comment.