# M0009 wrong number of arguments (/docs/diagnostics/codes/m0009)

<Diagnostic code="M0009" />

## The mistake and the fix [#the-mistake-and-the-fix]

<div className="code-pair">

```go title="The mistake"
func pair() (int, int)

pair(1)
```

```go title="Fixed"
pair() // [!code highlight]
```

</div>

## The fix [#the-fix]

Pass the arguments the signature lists.

See also [all error codes](/docs/diagnostics/codes) and [marmot explain](/docs/commands/explain).