Skip to content

Commit 7082689

Browse files
committed
add comment
1 parent 40c034e commit 7082689

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/watch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ fn find_gitignore(book_root: &Path) -> Option<PathBuf> {
8787
.find(|p| p.exists())
8888
}
8989

90+
// Using `canonicalize` can fail on Windows sometimes, might be a potential risk.
91+
// see ([https://github.com/rust-lang/mdBook/pull/2229#discussion_r1408665981).
9092
fn filter_ignored_files(ignore: Gitignore, paths: &[PathBuf]) -> Vec<PathBuf> {
9193
let ignore_root = ignore
9294
.path()

0 commit comments

Comments
 (0)