mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-04-03 14:03:44 +03:00
docs(spinner): remove obsolete comment (#168)
The doc for spinner.Model.Update is obsolete as per 35c3cd626d
,
which made Update aware of Msg's type.
This commit is contained in:
parent
7959eb4867
commit
54869f7a1d
@ -112,9 +112,7 @@ type TickMsg struct {
|
||||
ID int
|
||||
}
|
||||
|
||||
// Update is the Tea update function. This will advance the spinner one frame
|
||||
// every time it's called, regardless the message passed, so be sure the logic
|
||||
// is setup so as not to call this Update needlessly.
|
||||
// Update is the Tea update function.
|
||||
func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
||||
switch msg := msg.(type) {
|
||||
case TickMsg:
|
||||
|
Loading…
Reference in New Issue
Block a user