File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ impl MDBook {
241
241
}
242
242
243
243
/// 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 {
245
245
self . preprocessors . push ( Box :: new ( preprocessor) ) ;
246
246
self
247
247
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ fn mdbook_runs_preprocessors() {
52
52
let cfg = Config :: default ( ) ;
53
53
54
54
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) ) ) ;
56
56
book. build ( ) . unwrap ( ) ;
57
57
58
58
let inner = spy. lock ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn ask_the_preprocessor_to_blow_up() {
36
36
let dummy_book = DummyBook :: new ( ) ;
37
37
let temp = dummy_book. build ( ) . unwrap ( ) ;
38
38
let mut md = MDBook :: load ( temp. path ( ) ) . unwrap ( ) ;
39
- md. with_preprecessor ( example ( ) ) ;
39
+ md. with_preprocessor ( example ( ) ) ;
40
40
41
41
md. config
42
42
. set ( "preprocessor.nop-preprocessor.blow-up" , true )
@@ -52,7 +52,7 @@ fn process_the_dummy_book() {
52
52
let dummy_book = DummyBook :: new ( ) ;
53
53
let temp = dummy_book. build ( ) . unwrap ( ) ;
54
54
let mut md = MDBook :: load ( temp. path ( ) ) . unwrap ( ) ;
55
- md. with_preprecessor ( example ( ) ) ;
55
+ md. with_preprocessor ( example ( ) ) ;
56
56
57
57
md. build ( ) . unwrap ( ) ;
58
58
}
You can’t perform that action at this time.
0 commit comments