From 5a84953b4e2d75c9c19d3425810a97f023fd64f8 Mon Sep 17 00:00:00 2001 From: ariasuni Date: Sun, 19 Apr 2020 05:53:17 +0200 Subject: [PATCH] Fix typos in code documentation --- src/fs/feature/git.rs | 2 +- src/fs/feature/xattr.rs | 4 ++-- src/options/filter.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fs/feature/git.rs b/src/fs/feature/git.rs index b0646d3..c6edc67 100644 --- a/src/fs/feature/git.rs +++ b/src/fs/feature/git.rs @@ -262,7 +262,7 @@ impl Git { /// Converts a path to an absolute path based on the current directory. /// Paths need to be absolute for them to be compared properly, otherwise /// you’d ask a repo about “./README.md” but it only knows about -/// “/vagrant/REAMDE.md”, prefixed by the workdir. +/// “/vagrant/README.md”, prefixed by the workdir. fn reorient(path: &Path) -> PathBuf { use std::env::current_dir; // I’m not 100% on this func tbh diff --git a/src/fs/feature/xattr.rs b/src/fs/feature/xattr.rs index b42b05e..8f57d67 100644 --- a/src/fs/feature/xattr.rs +++ b/src/fs/feature/xattr.rs @@ -73,8 +73,8 @@ pub fn list_attrs(lister: &lister::Lister, path: &Path) -> io::Result 0 { - // End indicies of the attribute names - // the buffer contains 0-terminates c-strings + // End indices of the attribute names + // the buffer contains 0-terminated c-strings let idx = buf.iter().enumerate().filter_map(|(i, v)| if *v == 0 { Some(i) } else { None } ); diff --git a/src/options/filter.rs b/src/options/filter.rs index 2ab644a..48607fe 100644 --- a/src/options/filter.rs +++ b/src/options/filter.rs @@ -144,7 +144,7 @@ impl DotFilter { impl IgnorePatterns { /// Determines the set of glob patterns to use based on the - /// `--ignore-patterns` argument’s value. This is a list of strings + /// `--ignore-glob` argument’s value. This is a list of strings /// separated by pipe (`|`) characters, given in any order. pub fn deduce(matches: &MatchedFlags) -> Result {