Skip to content

Commit

Permalink
docs(spinner): remove obsolete comment (#168)
Browse files Browse the repository at this point in the history
The doc for spinner.Model.Update is obsolete as per 35c3cd6,
which made Update aware of Msg's type.
  • Loading branch information
motemen authored Jun 10, 2022
1 parent 7959eb4 commit 54869f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spinner/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54869f7

Please sign in to comment.