examples/sequence: fix milisecond typo in SleepPrintln

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

Signed-off-by: makoto-developer <72484465+makoto-developer@users.noreply.github.com>
This commit is contained in:
makoto-developer 2026-07-25 23:20:52 +09:00 committed by Christian Rocha
parent d40db141fa
commit 6fb1f47b6c

View file

@ -43,10 +43,10 @@ func (m model) Init() tea.Cmd {
}
// print string after stopping for a certain period of time
func SleepPrintln(s string, milisecond int) tea.Cmd {
func SleepPrintln(s string, millisecond int) tea.Cmd {
printCmd := tea.Println(s)
return func() tea.Msg {
time.Sleep(time.Duration(milisecond) * time.Millisecond)
time.Sleep(time.Duration(millisecond) * time.Millisecond)
return printCmd()
}
}