From ad09446efe10c8653c3b74208b8f7f58495c7166 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 9 Oct 2023 11:09:06 +0200 Subject: [PATCH] pwt-macros: builder: improve link text for autogenerated docs Signed-off-by: Dominik Csapak --- pwt-macros/src/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwt-macros/src/builder.rs b/pwt-macros/src/builder.rs index de6234f..89f791e 100644 --- a/pwt-macros/src/builder.rs +++ b/pwt-macros/src/builder.rs @@ -198,7 +198,7 @@ fn derive_builder(builder: DeriveInput) -> Result { } } let setter_doc = format!("Set {field_name}\n\n{doc}"); - let builder_doc = format!("Builder style method for [`Self::{setter}`]"); + let builder_doc = format!("Builder style method for [`{setter}`](Self::{setter})"); (builder_doc, setter_doc) } }; -- 2.39.5