Fix typos in code documentation

This commit is contained in:
ariasuni 2020-04-19 05:53:17 +02:00
parent 78ba0b8973
commit 5a84953b4e
3 changed files with 4 additions and 4 deletions

View File

@ -262,7 +262,7 @@ impl Git {
/// Converts a path to an absolute path based on the current directory. /// Converts a path to an absolute path based on the current directory.
/// Paths need to be absolute for them to be compared properly, otherwise /// Paths need to be absolute for them to be compared properly, otherwise
/// youd ask a repo about “./README.md” but it only knows about /// youd 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 { fn reorient(path: &Path) -> PathBuf {
use std::env::current_dir; use std::env::current_dir;
// Im not 100% on this func tbh // Im not 100% on this func tbh

View File

@ -73,8 +73,8 @@ pub fn list_attrs(lister: &lister::Lister, path: &Path) -> io::Result<Vec<Attrib
} }
if err > 0 { if err > 0 {
// End indicies of the attribute names // End indices of the attribute names
// the buffer contains 0-terminates c-strings // the buffer contains 0-terminated c-strings
let idx = buf.iter().enumerate().filter_map(|(i, v)| let idx = buf.iter().enumerate().filter_map(|(i, v)|
if *v == 0 { Some(i) } else { None } if *v == 0 { Some(i) } else { None }
); );

View File

@ -144,7 +144,7 @@ impl DotFilter {
impl IgnorePatterns { impl IgnorePatterns {
/// Determines the set of glob patterns to use based on the /// Determines the set of glob patterns to use based on the
/// `--ignore-patterns` arguments value. This is a list of strings /// `--ignore-glob` arguments value. This is a list of strings
/// separated by pipe (`|`) characters, given in any order. /// separated by pipe (`|`) characters, given in any order.
pub fn deduce(matches: &MatchedFlags) -> Result<IgnorePatterns, Misfire> { pub fn deduce(matches: &MatchedFlags) -> Result<IgnorePatterns, Misfire> {