Skip to content

Commit

Permalink
chore: fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Mar 5, 2024
1 parent 4f26be4 commit 065d3dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/dent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ impl DirEntry {
/// Returns the depth at which this entry was created relative to the root.
///
/// The smallest depth is `0` and always corresponds to the path given
/// to the `new` function on `WalkDir`. Its direct descendents have depth
/// `1`, and their descendents have depth `2`, and so on.
/// to the `new` function on `WalkDir`. Its direct descendants have depth
/// `1`, and their descendants have depth `2`, and so on.
pub fn depth(&self) -> usize {
self.depth
}
Expand Down
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl Error {
/// Returns the depth at which this error occurred relative to the root.
///
/// The smallest depth is `0` and always corresponds to the path given to
/// the [`new`] function on [`WalkDir`]. Its direct descendents have depth
/// `1`, and their descendents have depth `2`, and so on.
/// the [`new`] function on [`WalkDir`]. Its direct descendants have depth
/// `1`, and their descendants have depth `2`, and so on.
///
/// [`new`]: struct.WalkDir.html#method.new
/// [`WalkDir`]: struct.WalkDir.html
Expand Down
16 changes: 8 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ macro_rules! itry {
/// Note that this result type embeds the error type in this crate. This
/// is only useful if you care about the additional information provided by
/// the error (such as the path associated with the error or whether a loop
/// was dectected). If you want things to Just Work, then you can use
/// was detected). If you want things to Just Work, then you can use
/// [`io::Result`] instead since the error type in this package will
/// automatically convert to an [`io::Result`] when using the [`try!`] macro.
///
Expand Down Expand Up @@ -218,7 +218,7 @@ pub type Result<T> = ::std::result::Result<T, Error>;
///
/// [`min_depth`]: struct.WalkDir.html#method.min_depth
///
/// This will only return descendents of the `foo` directory and not `foo`
/// This will only return descendants of the `foo` directory and not `foo`
/// itself.
///
/// # Loops
Expand Down Expand Up @@ -305,8 +305,8 @@ impl WalkDir {
/// Set the minimum depth of entries yielded by the iterator.
///
/// The smallest depth is `0` and always corresponds to the path given
/// to the `new` function on this type. Its direct descendents have depth
/// `1`, and their descendents have depth `2`, and so on.
/// to the `new` function on this type. Its direct descendants have depth
/// `1`, and their descendants have depth `2`, and so on.
pub fn min_depth(mut self, depth: usize) -> Self {
self.opts.min_depth = depth;
if self.opts.min_depth > self.opts.max_depth {
Expand All @@ -318,8 +318,8 @@ impl WalkDir {
/// Set the maximum depth of entries yield by the iterator.
///
/// The smallest depth is `0` and always corresponds to the path given
/// to the `new` function on this type. Its direct descendents have depth
/// `1`, and their descendents have depth `2`, and so on.
/// to the `new` function on this type. Its direct descendants have depth
/// `1`, and their descendants have depth `2`, and so on.
///
/// Note that this will not simply filter the entries of the iterator, but
/// it will actually avoid descending into directories when the depth is
Expand Down Expand Up @@ -379,7 +379,7 @@ impl WalkDir {
/// between scarce resources (file descriptors) and memory. Namely, when
/// the maximum number of file descriptors is reached and a new directory
/// needs to be opened to continue iteration, then a previous directory
/// handle is closed and has its unyielded entries stored in memory. In
/// handle is closed and has its un-yielded entries stored in memory. In
/// practice, this is a satisfying trade off because it scales with respect
/// to the *depth* of your file tree. Therefore, low values (even `1`) are
/// acceptable.
Expand Down Expand Up @@ -611,7 +611,7 @@ pub struct IntoIter {
struct Ancestor {
/// The path of this ancestor.
path: PathBuf,
/// An open file to this ancesor. This is only used on Windows where
/// An open file to this ancestor. This is only used on Windows where
/// opening a file handle appears to be quite expensive, so we choose to
/// cache it. This comes at the cost of not respecting the file descriptor
/// limit set by the user.
Expand Down

0 comments on commit 065d3dc

Please sign in to comment.