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:
parent
d40db141fa
commit
6fb1f47b6c
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue