# M0012 assignment count mismatch (/docs/diagnostics/codes/m0012)

<Diagnostic code="M0012" />

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

<div className="code-pair">

```go title="The mistake"
n := strconv.Atoi(s)
```

```go title="Fixed"
n, err := strconv.Atoi(s) // [!code highlight]
if err != nil { // [!code highlight]
	return err // [!code highlight]
} // [!code highlight]
```

</div>

## The fix [#the-fix]

Receive every result, using _ for the ones you do not need.

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