mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
docs: fix typos and improve comment clarity
This commit is contained in:
committed by
Christian Rocha
parent
ee382285e7
commit
3d3ed883d3
@@ -22,7 +22,7 @@ func nextID() int {
|
||||
|
||||
// TickMsg is a message that is sent on every timer tick.
|
||||
type TickMsg struct {
|
||||
// ID is the identifier of the stopwatch that send the message. This makes
|
||||
// ID is the identifier of the stopwatch that sends the message. This makes
|
||||
// it possible to determine which stopwatch a tick belongs to when there
|
||||
// are multiple stopwatches running.
|
||||
//
|
||||
@@ -99,7 +99,7 @@ func (m Model) Toggle() tea.Cmd {
|
||||
return m.Start()
|
||||
}
|
||||
|
||||
// Reset restes the stopwatch to 0.
|
||||
// Reset resets the stopwatch to 0.
|
||||
func (m Model) Reset() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return ResetMsg{ID: m.id}
|
||||
|
||||
Reference in New Issue
Block a user