mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-10 23:00:56 +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.
|
/// 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
|
||||||
/// you’d ask a repo about “./README.md” but it only knows about
|
/// 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 {
|
fn reorient(path: &Path) -> PathBuf {
|
||||||
use std::env::current_dir;
|
use std::env::current_dir;
|
||||||
// I’m not 100% on this func tbh
|
// 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 {
|
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 }
|
||||||
);
|
);
|
||||||
|
@ -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` 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.
|
/// separated by pipe (`|`) characters, given in any order.
|
||||||
pub fn deduce(matches: &MatchedFlags) -> Result<IgnorePatterns, Misfire> {
|
pub fn deduce(matches: &MatchedFlags) -> Result<IgnorePatterns, Misfire> {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user