diff --git a/tutorials/commands/README.md b/tutorials/commands/README.md index 73d9f10..cfeb639 100644 --- a/tutorials/commands/README.md +++ b/tutorials/commands/README.md @@ -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) }