mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-27 10:22:40 +00:00
Fix typos in code documentation
This commit is contained in:
parent
78ba0b8973
commit
5a84953b4e
@ -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
|
||||
|
@ -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 }
|
||||
);
|
||||
|
@ -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> {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user