# Naming conventions for structs and constructors

**URL:** <https://discourse.julialang.org/t/naming-conventions-for-structs-and-constructors/106568>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 22, 2023, 10:27am UTC](https://discourse.julialang.org/t/naming-conventions-for-structs-and-constructors/106568 "2023-11-22T10:27:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [November 22, 2023, 11:45am UTC](https://discourse.julialang.org/t/naming-conventions-for-structs-and-constructors/106568/4 "2023-11-22T11:45:31Z")

</div>

What about:

> [@fredrikekre](#):
>
> no information on how you try to incorporate these into Documenters `@docs` block.

For example, this works just fine:

````julia
```@docs
TestPackage.InitialState # struct type docs
TestPackage.InitialState() # constructor docs
```

````

Your updated example doesn’t show any warnings like you mention:

> [@ufechner7](#):
>
> f I document both it complains about a duplicate definition.

[It would be useful if you can provide examples that reproduce your problems.](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/naming-conventions-for-structs-and-constructors/106568)._
