forked from Mirrors/bubbletea
Fix typo in doc comment + improve that comment
This commit is contained in:
parent
413776f017
commit
480bdd41fc
4
tea.go
4
tea.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue