From 54869f7a1d37beaeb0a8d4f8d9351282c4119880 Mon Sep 17 00:00:00 2001 From: Hironao OTSUBO Date: Fri, 10 Jun 2022 23:03:55 +0900 Subject: [PATCH] docs(spinner): remove obsolete comment (#168) The doc for spinner.Model.Update is obsolete as per 35c3cd626d97e1a5e39d1fae3e481b3940e525a8, which made Update aware of Msg's type. --- spinner/spinner.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spinner/spinner.go b/spinner/spinner.go index d11d8d5..c6cdb3c 100644 --- a/spinner/spinner.go +++ b/spinner/spinner.go @@ -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: