From c2686a817acd5744081ff88d71db7a4520371aab Mon Sep 17 00:00:00 2001 From: Andrew Mackenzie Date: Thu, 5 Dec 2019 20:25:36 +0100 Subject: [PATCH] Address PR review comments --- book-example/src/cli/build.md | 3 +-- src/utils/fs.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/book-example/src/cli/build.md b/book-example/src/cli/build.md index 7572cd40..2521a640 100644 --- a/book-example/src/cli/build.md +++ b/book-example/src/cli/build.md @@ -36,5 +36,4 @@ not specified it will default to the value of the `build.build-dir` key in ------------------- ***Note:*** *The build command copies all files (excluding files with `.md` extension) from the source directory -into the build directory. If the build directory is under the source directory it is not copied as this would -result in a recursive copy until your disk is full.* +into the build directory.* diff --git a/src/utils/fs.rs b/src/utils/fs.rs index 94edeb98..570e8428 100644 --- a/src/utils/fs.rs +++ b/src/utils/fs.rs @@ -115,7 +115,7 @@ pub fn copy_files_except_ext( let entry = entry?; let metadata = entry.metadata()?; - // If the entry is a dir and the recursive option is enabled , call itself + // If the entry is a dir and the recursive option is enabled, call itself if metadata.is_dir() && recursive { if entry.path() == to.to_path_buf() { continue;