Skip to content

Commit c6220fb

Browse files
authored
Merge pull request #906 from rust-lang-nursery/fix/typo
fixes typo in code
2 parents 07a64b1 + 652eab6 commit c6220fb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/book/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl MDBook {
241241
}
242242

243243
/// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book.
244-
pub fn with_preprecessor<P: Preprocessor + 'static>(&mut self, preprocessor: P) -> &mut Self {
244+
pub fn with_preprocessor<P: Preprocessor + 'static>(&mut self, preprocessor: P) -> &mut Self {
245245
self.preprocessors.push(Box::new(preprocessor));
246246
self
247247
}

tests/build_process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn mdbook_runs_preprocessors() {
5252
let cfg = Config::default();
5353

5454
let mut book = MDBook::load_with_config(temp.path(), cfg).unwrap();
55-
book.with_preprecessor(Spy(Arc::clone(&spy)));
55+
book.with_preprocessor(Spy(Arc::clone(&spy)));
5656
book.build().unwrap();
5757

5858
let inner = spy.lock().unwrap();

tests/custom_preprocessors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn ask_the_preprocessor_to_blow_up() {
3636
let dummy_book = DummyBook::new();
3737
let temp = dummy_book.build().unwrap();
3838
let mut md = MDBook::load(temp.path()).unwrap();
39-
md.with_preprecessor(example());
39+
md.with_preprocessor(example());
4040

4141
md.config
4242
.set("preprocessor.nop-preprocessor.blow-up", true)
@@ -52,7 +52,7 @@ fn process_the_dummy_book() {
5252
let dummy_book = DummyBook::new();
5353
let temp = dummy_book.build().unwrap();
5454
let mut md = MDBook::load(temp.path()).unwrap();
55-
md.with_preprecessor(example());
55+
md.with_preprocessor(example());
5656

5757
md.build().unwrap();
5858
}

0 commit comments

Comments
 (0)