Skip to content

Commit

Permalink
Fix builder method link of the builder type
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Oct 26, 2023
1 parent 6fa90a0 commit ca740ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions typed-builder-macro/src/struct_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ impl<'a> StructInfo<'a> {
let builder_type_doc = if self.builder_attr.doc {
self.builder_attr.builder_type.get_doc_or(|| {
format!(
"Builder for [`{name}`] instances.\n\nSee [`{name}::builder()`] for more info.",
name = name
"Builder for [`{name}`] instances.\n\nSee [`{name}::{builder_method_name}()`] for more info.",
name = name,
builder_method_name = builder_method_name
)
})
} else {
Expand Down

0 comments on commit ca740ae

Please sign in to comment.