mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
docs: fix code in commands tutorial (#501)
This commit is contained in:
@@ -189,7 +189,7 @@ that returns a command. For example:
|
|||||||
```go
|
```go
|
||||||
func cmdWithArg(id int) tea.Cmd {
|
func cmdWithArg(id int) tea.Cmd {
|
||||||
return func() tea.Msg {
|
return func() tea.Msg {
|
||||||
return someMsg{id: int}
|
return someMsg{id: id}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user