Skip to content

Commit

Permalink
fix: minor tea.Cmd tutorial syntax typo
Browse files Browse the repository at this point in the history
`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!
  • Loading branch information
wolves authored and meowgorithm committed Feb 28, 2022
1 parent 3b83e70 commit a57af57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/commands/README.md
Expand Up @@ -202,7 +202,7 @@ func checkSomeUrl(url string) tea.Cmd {
c := &http.Client{Timeout: 10 * time.Second}
res, err := c.Get(url)
if err != nil {
return errMsg(err)
return errMsg{err}
}
return statusMsg(res.StatusCode)
}
Expand Down

0 comments on commit a57af57

Please sign in to comment.