# How to merge docstrings of constructors with and without type parameters?

**URL:** <https://discourse.julialang.org/t/how-to-merge-docstrings-of-constructors-with-and-without-type-parameters/42830>\
**Category:** General Usage\
**Tags:** question, documenter\
**Created:** [July 10, 2020, 8:01am UTC](https://discourse.julialang.org/t/how-to-merge-docstrings-of-constructors-with-and-without-type-parameters/42830 "2020-07-10T08:01:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [July 10, 2020, 10:28am UTC](https://discourse.julialang.org/t/how-to-merge-docstrings-of-constructors-with-and-without-type-parameters/42830/4 "2020-07-10T10:28:04Z")

</div>

I am sorry I did not understand the original question. This should work (I just tested it):

```julia
module X

export Foo

struct Foo{T,S} end

"the default"
Foo() = Foo{Int,Int}()

"one param"
Foo{T}() where T = Foo{T,Int}()

end # module

```

then in the docs, use the call syntax:

````markdown
```@docs
Foo()
Foo{T}()
```

````

---

_[View the full topic](https://discourse.julialang.org/t/how-to-merge-docstrings-of-constructors-with-and-without-type-parameters/42830)._
