Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes typo in code #906

Merged
merged 3 commits into from
May 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/book/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl MDBook {
}

/// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book.
pub fn with_preprecessor<P: Preprocessor + 'static>(&mut self, preprocessor: P) -> &mut Self {
pub fn with_preprocessor<P: Preprocessor + 'static>(&mut self, preprocessor: P) -> &mut Self {
self.preprocessors.push(Box::new(preprocessor));
self
}
Expand Down
2 changes: 1 addition & 1 deletion tests/build_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions tests/custom_preprocessors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
}