docs: fix code in commands tutorial (#501)

This commit is contained in:
Benjamin DeCoste
2022-10-12 00:45:51 -03:00
committed by GitHub
parent 1ed623fdc0
commit aba3cec050

View File

@@ -189,7 +189,7 @@ that returns a command. For example:
```go
func cmdWithArg(id int) tea.Cmd {
return func() tea.Msg {
return someMsg{id: int}
return someMsg{id: id}
}
}
```