Ver código fonte

Fix typos in code documentation

ariasuni 5 anos atrás
pai
commit
5a84953b4e
3 arquivos alterados com 4 adições e 4 exclusões
  1. 1 1
      src/fs/feature/git.rs
  2. 2 2
      src/fs/feature/xattr.rs
  3. 1 1
      src/options/filter.rs

+ 1 - 1
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

+ 2 - 2
src/fs/feature/xattr.rs

@@ -73,8 +73,8 @@ pub fn list_attrs(lister: &lister::Lister, path: &Path) -> io::Result<Vec<Attrib
         }
 
         if err > 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 }
             );

+ 1 - 1
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<IgnorePatterns, Misfire> {