# Documenter.jl: misplaced docstrings when using method signatures

**URL:** https://discourse.julialang.org/t/documenter-jl-misplaced-docstrings-when-using-method-signatures/111951
**Category:** General Usage
**Tags:** documenter
**Created:** [March 21, 2024, 9:06pm UTC](https://discourse.julialang.org/t/documenter-jl-misplaced-docstrings-when-using-method-signatures/111951 "2024-03-21T21:06:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matthias314](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@matthias314](https://discourse.julialang.org/u/matthias314)
#### Post date: [March 21, 2024, 9:06pm UTC](https://discourse.julialang.org/t/documenter-jl-misplaced-docstrings-when-using-method-signatures/111951/1 "2024-03-21T21:06:36Z")

</div>

I get repeated docstrings in the output of Documenter.jl when I try to select methods by their signatures. Here is an example: Take this package

```julia
module DocumenterTestPkg

export f

"vector doc"
f(x::Vector{T}) where T = 1

"matrix doc"
f(x::Matrix{T}) where T = 2

end

```

and the following as the Documenter source file `docs/src/index.md`:

````julia
Vectors

```@docs
f(::Vector{T}) where T
```

Matrices

```@docs
f(::Matrix{T}) where T
```

````

I would expect to get one entry for vectors and one for matrices. However, the output is something like the following:

```julia
Vectors

DocumenterTestPkg.f — Method

vector doc

matrix doc

Matrices

DocumenterTestPkg.f — Method

vector doc

matrix doc

```

So each entry appears twice. How can this be avoided?

I’m using Julia 1.10.0 and Documenter 1.3.0.
