mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-24 14:44:38 +03:00
Fix typo in a spinner comment
This commit is contained in:
parent
1405b09ec8
commit
4365990396
@ -188,10 +188,9 @@ type TickMsg struct {
|
|||||||
func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case TickMsg:
|
case TickMsg:
|
||||||
|
|
||||||
// If a tag is set, and it's not the one we expect, reject the message.
|
// If a tag is set, and it's not the one we expect, reject the message.
|
||||||
// This prevents the spinner from receiving too many messages and
|
// This prevents the spinner from receiving too many messages and
|
||||||
// this spinning too fast.
|
// thus spinning too fast.
|
||||||
if msg.tag > 0 && msg.tag != m.tag {
|
if msg.tag > 0 && msg.tag != m.tag {
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user