Update custom_preprocessors.rs

This commit is contained in:
Dylan DPC 2019-05-03 20:32:56 +02:00 committed by GitHub
parent 5726a8afd6
commit 652eab6e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ fn ask_the_preprocessor_to_blow_up() {
let dummy_book = DummyBook::new(); let dummy_book = DummyBook::new();
let temp = dummy_book.build().unwrap(); let temp = dummy_book.build().unwrap();
let mut md = MDBook::load(temp.path()).unwrap(); let mut md = MDBook::load(temp.path()).unwrap();
md.with_preprecessor(example()); md.with_preprocessor(example());
md.config md.config
.set("preprocessor.nop-preprocessor.blow-up", true) .set("preprocessor.nop-preprocessor.blow-up", true)
@ -52,7 +52,7 @@ fn process_the_dummy_book() {
let dummy_book = DummyBook::new(); let dummy_book = DummyBook::new();
let temp = dummy_book.build().unwrap(); let temp = dummy_book.build().unwrap();
let mut md = MDBook::load(temp.path()).unwrap(); let mut md = MDBook::load(temp.path()).unwrap();
md.with_preprecessor(example()); md.with_preprocessor(example());
md.build().unwrap(); md.build().unwrap();
} }