From 47cc57177d43863c452d714e1973e6efc89a89c5 Mon Sep 17 00:00:00 2001 From: Jaime Valdemoros Date: Tue, 16 Jan 2018 23:02:50 +0000 Subject: [PATCH] Update comment with rustdoc link --- src/book/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/book/mod.rs b/src/book/mod.rs index 374ab9f1..2bf1b032 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -199,15 +199,14 @@ impl MDBook { } /// You can change the default renderer to another one by using this method. - /// The only requirement is for your renderer to implement the [Renderer - /// trait](../../renderer/renderer/trait.Renderer.html) + /// The only requirement is for your renderer to implement the [`Renderer` + /// trait](../renderer/trait.Renderer.html) pub fn with_renderer(&mut self, renderer: R) -> &mut Self { self.renderers.push(Box::new(renderer)); self } - /// You can add a new preprocessor by using this method. - /// The only requirement is for your renderer to implement the Preprocessor trait. + /// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book. pub fn with_preprecessor(&mut self, preprocessor: P) -> &mut Self { self.preprocessors.push(Box::new(preprocessor)); self