mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
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!
This commit is contained in:
committed by
Christian Rocha
parent
3b83e703b5
commit
a57af578f0
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user