From 7e26a8430d0bdff1653e6747a3aad713db702834 Mon Sep 17 00:00:00 2001 From: Dylan DPC Date: Fri, 3 May 2019 19:59:58 +0200 Subject: [PATCH 1/3] Update mod.rs --- src/book/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book/mod.rs b/src/book/mod.rs index 5bd2b194..9a413759 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -241,7 +241,7 @@ impl MDBook { } /// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book. - pub fn with_preprecessor(&mut self, preprocessor: P) -> &mut Self { + pub fn with_preprocessor(&mut self, preprocessor: P) -> &mut Self { self.preprocessors.push(Box::new(preprocessor)); self } From 5726a8afd6d449531cc5e7f4a8b634b34074bdcd Mon Sep 17 00:00:00 2001 From: Dylan DPC Date: Fri, 3 May 2019 20:00:43 +0200 Subject: [PATCH 2/3] Update build_process.rs --- tests/build_process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/build_process.rs b/tests/build_process.rs index 85750ab3..a1e49caa 100644 --- a/tests/build_process.rs +++ b/tests/build_process.rs @@ -52,7 +52,7 @@ fn mdbook_runs_preprocessors() { let cfg = Config::default(); let mut book = MDBook::load_with_config(temp.path(), cfg).unwrap(); - book.with_preprecessor(Spy(Arc::clone(&spy))); + book.with_preprocessor(Spy(Arc::clone(&spy))); book.build().unwrap(); let inner = spy.lock().unwrap(); From 652eab6e7ee32b6b96effe410c6975b62642b8d4 Mon Sep 17 00:00:00 2001 From: Dylan DPC Date: Fri, 3 May 2019 20:32:56 +0200 Subject: [PATCH 3/3] Update custom_preprocessors.rs --- tests/custom_preprocessors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/custom_preprocessors.rs b/tests/custom_preprocessors.rs index dd120eab..6e71fbbd 100644 --- a/tests/custom_preprocessors.rs +++ b/tests/custom_preprocessors.rs @@ -36,7 +36,7 @@ fn ask_the_preprocessor_to_blow_up() { let dummy_book = DummyBook::new(); let temp = dummy_book.build().unwrap(); let mut md = MDBook::load(temp.path()).unwrap(); - md.with_preprecessor(example()); + md.with_preprocessor(example()); md.config .set("preprocessor.nop-preprocessor.blow-up", true) @@ -52,7 +52,7 @@ fn process_the_dummy_book() { let dummy_book = DummyBook::new(); let temp = dummy_book.build().unwrap(); let mut md = MDBook::load(temp.path()).unwrap(); - md.with_preprecessor(example()); + md.with_preprocessor(example()); md.build().unwrap(); }