From a57af578f0f2e38198de186febeb1c3de4b2aa57 Mon Sep 17 00:00:00 2001 From: Christopher Stingl Date: Mon, 28 Feb 2022 16:28:26 -0500 Subject: [PATCH] fix: minor `tea.Cmd` tutorial syntax typo `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! --- tutorials/commands/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }