Fix typo in doc comment + improve that comment

This commit is contained in:
Christian Rocha
2020-10-18 12:43:41 -04:00
parent 413776f017
commit 480bdd41fc

4
tea.go
View File

@@ -25,8 +25,8 @@ type Msg interface{}
// Model contains the program's state as well as it's core functions.
type Model interface {
// Init is the first function that will be called. It returns your an
// optional initial command.
// Init is the first function that will be called. It returns an optional
// initial command. To not perform an initial command return nil.
Init() Cmd
// Update is called when a message is received. Use it to inspect messages