Skip to content
Myr

Fix ineffectual assignment in spinner example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Muehlhaeuser · committed by Christian Muehlhaeuser · parent b6c7f93 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:examples/spinners/main.go+2 added-1 removed
84 unmodified lines
85 m.spinner.Spinner = spinners[m.index]86}8788func (m model) View() (s string) {89 gap := " "89 var gap string90 switch m.index {91 case 1:92 gap = ""93 default:94 gap = " "95 }9697 s += fmt.Sprintf("\n %s%s%s\n\n", m.spinner.View(), gap, textStyle("Spinning..."))98 s += helpStyle("h/l, ←/→: change spinner • q: exit\n")99 return100}