Skip to content

Commit

Permalink
fix get_dir_content2 example
Browse files Browse the repository at this point in the history
small correction that I noticed when using the example
  • Loading branch information
puppetmaster- committed Dec 31, 2021
1 parent 752fc4d commit 6a786a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,9 @@ where
/// # Examples
/// ```rust,ignore
/// extern crate fs_extra;
/// use fs_extra::dir::get_dir_content2;
/// use fs_extra::dir::{DirOptions, get_dir_content2};
///
/// let options = DirOptions::new();
/// let mut options = DirOptions::new();
/// options.depth = 3; // Get 3 levels of folder.
/// let dir_content = get_dir_content2("dir", &options)?;
/// for directory in dir_content.directories {
Expand Down

0 comments on commit 6a786a0

Please sign in to comment.