docs: Fix some typos and outdated comments

pull/24376/head
Carol (Nichols || Goulding) 2021-12-17 08:55:23 -05:00
parent 61ee70d222
commit 24fd2e549b
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
2 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ impl CloudPath {
}
}
// Only being use d by some features
// Only being used by some features
#[allow(dead_code)]
pub(crate) fn is_dir(&self) -> bool {
match &self.inner {

View File

@ -75,7 +75,7 @@ impl DirsAndFileName {
// `self` doesn't have a file name but the prefix has, so it's not really a prefix
(None, Some(_prefix_file)) => false,
// both `self` and teh prefix have not filename, perfect match
// both `self` and the prefix have no filename, perfect match
(None, None) => true,
},
@ -261,7 +261,7 @@ mod tests {
needle
);
// partial dir prefix matches
// partial dir prefix doesn't match
let mut needle = DirsAndFileName::default();
needle.push_dir("f");
assert!(
@ -271,7 +271,7 @@ mod tests {
needle
);
// one dir and one partial dir matches
// one dir and one partial dir doesn't match
let mut needle = DirsAndFileName::default();
needle.push_all_dirs(&["foo/bar", "baz"]);
assert!(
@ -311,7 +311,7 @@ mod tests {
);
// Not all directories match; file name is a prefix of the next directory; this
// matches
// does not match
let mut needle = DirsAndFileName::default();
needle.push_all_dirs(&["foo/bar", "baz%2Ftest"]);
needle.set_file_name("s");