From 4aa9ce489b3f254951749baef2a0865d7d306b16 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 11 Oct 2022 08:40:01 -0400 Subject: [PATCH] docs: fix spelling / various typos (#526) --- commands.go | 2 +- examples/debounce/main.go | 2 +- examples/pager/artichoke.md | 2 +- examples/pipe/main.go | 2 +- exec.go | 2 +- screen.go | 2 +- tea.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/commands.go b/commands.go index b095e5d..08f1a2e 100644 --- a/commands.go +++ b/commands.go @@ -40,7 +40,7 @@ func Sequence(cmds ...Cmd) Cmd { } } -// sequenceMsg is used interally to run the the given commands in order. +// sequenceMsg is used interally to run the given commands in order. type sequenceMsg []Cmd // Every is a command that ticks in sync with the system clock. So, if you diff --git a/examples/debounce/main.go b/examples/debounce/main.go index d22fe4d..6058aca 100644 --- a/examples/debounce/main.go +++ b/examples/debounce/main.go @@ -7,7 +7,7 @@ package main // by the Tick command. // // In a subsequent Update, if the tag in the Msg matches current tag on the -// model's state we know that the debouncing is complete and we can proceeed as +// model's state we know that the debouncing is complete and we can proceed as // normal. If not, we simply ignore the inbound message. import ( diff --git a/examples/pager/artichoke.md b/examples/pager/artichoke.md index 55b673a..00824b9 100644 --- a/examples/pager/artichoke.md +++ b/examples/pager/artichoke.md @@ -7,7 +7,7 @@ A casual introduction. 你好世界! The _artichoke_ is mentioned as a garden plant in the 8th century BC by Homer **and** Hesiod. The naturally occurring variant of the artichoke, the cardoon, -which is native the the Mediterranean area, also has records of use as a food +which is native to the Mediterranean area, also has records of use as a food among the ancient Greeks and Romans. Pliny the Elder mentioned growing of _carduus_ in Carthage and Cordoba. diff --git a/examples/pipe/main.go b/examples/pipe/main.go index 5d7e0ac..b60aa7e 100644 --- a/examples/pipe/main.go +++ b/examples/pipe/main.go @@ -1,6 +1,6 @@ package main -// An example illustating how to pipe in data to a Bubble Tea application. +// An example illustrating how to pipe in data to a Bubble Tea application. // Moreso, this serves as proof that Bubble Tea will automatically listen for // keystrokes when input is not a TTY, such as when data is piped or redirected // in. diff --git a/exec.go b/exec.go index 53bf5d4..7a14d2a 100644 --- a/exec.go +++ b/exec.go @@ -13,7 +13,7 @@ type execMsg struct { } // Exec is used to perform arbitrary I/O in a blocking fashion, effectively -// pausing the Program while execution is runnning and resuming it when +// pausing the Program while execution is running and resuming it when // execution has completed. // // Most of the time you'll want to use ExecProcess, which runs an exec.Cmd. diff --git a/screen.go b/screen.go index 5780290..899db3d 100644 --- a/screen.go +++ b/screen.go @@ -90,7 +90,7 @@ func DisableMouse() Msg { return disableMouseMsg{} } -// disableMouseMsg is an internal message that that signals to stop listening +// disableMouseMsg is an internal message that signals to stop listening // for mouse events. To send a disableMouseMsg, use the DisableMouse command. type disableMouseMsg struct{} diff --git a/tea.go b/tea.go index 1af5214..8a992e9 100644 --- a/tea.go +++ b/tea.go @@ -497,7 +497,7 @@ func (p *Program) Start() error { // messages to be injected from outside the program for interoperability // purposes. // -// If the program is not running this this will be a no-op, so it's safe to +// If the program is not running this will be a no-op, so it's safe to // send messages if the program is unstarted, or has exited. func (p *Program) Send(msg Msg) { p.msgs <- msg