fix error in init(): write "- [chapter 1](...)" to SUMMARY.md instead of "[chapter 1](...)" note the lack of dash at the beginning

This commit is contained in:
Mathieu David 2015-07-18 00:14:04 +02:00
parent 7fa5b06ccb
commit 60e47d2e08
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ impl MDBook {
if let Ok(mut f) = summary {
try!(writeln!(f, "# Summary"));
try!(writeln!(f, ""));
try!(writeln!(f, "[Chapter 1](./chapter_1.md)"));
try!(writeln!(f, "- [Chapter 1](./chapter_1.md)"));
let mut chapter_1 = File::create(&src.join("chapter_1.md")).unwrap();
try!(writeln!(chapter_1, "# Chapter 1"));