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
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 2 additions and 2 deletions

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. // Model contains the program's state as well as it's core functions.
type Model interface { type Model interface {
// Init is the first function that will be called. It returns your an // Init is the first function that will be called. It returns an optional
// optional initial command. // initial command. To not perform an initial command return nil.
Init() Cmd Init() Cmd
// Update is called when a message is received. Use it to inspect messages // Update is called when a message is received. Use it to inspect messages