Skip to content
Myr

fix: minor `tea.Cmd` tutorial syntax typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`errMsg(err)` -> `errMsg{err}` Just noticed this while reading over the tutorial docs and figured I'd throw up a quick PR to address it. Really enjoying the tooling so far, thank you for creating it!

authored by Christopher Stingl · committed by Christian Rocha · parent 3b83e70 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:tutorials/commands/README.md+1 added-1 removed
200 unmodified lines
201 return func() tea.Msg {202 c := &http.Client{Timeout: 10 * time.Second}203 res, err := c.Get(url)204 if err != nil {205 return errMsg(err)205 return errMsg{err}206 }207 return statusMsg(res.StatusCode)208 }209}
37 unmodified lines