Skip to content
Myr

examples/sequence: fix milisecond typo in SleepPrintln

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

Rename the misspelled `milisecond` parameter to `millisecond`.

authored by makoto-developer · committed by Christian Rocha · parent d40db14 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Trailers

  • Signed-off-by: makoto-developer <72484465+makoto-developer@users.noreply.github.com>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:examples/sequence/main.go+2 added-2 removed
41 unmodified lines
42 )43}4445// print string after stopping for a certain period of time46func SleepPrintln(s string, milisecond int) tea.Cmd {46func SleepPrintln(s string, millisecond int) tea.Cmd {47 printCmd := tea.Println(s)48 return func() tea.Msg {49 time.Sleep(time.Duration(milisecond) * time.Millisecond)49 time.Sleep(time.Duration(millisecond) * time.Millisecond)50 return printCmd()51 }52}53
18 unmodified lines