diff --git a/src/book/mod.rs b/src/book/mod.rs index 437b13d1..e8896e0a 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -223,7 +223,7 @@ impl MDBook { debug!("[*]: Writing to .gitignore"); - writeln!(f, "{}", relative).expect("Could not write to file."); + writeln!(f, "/{}", relative).expect("Could not write to file."); } }