From ce125279cafe6ddd55074fc8f5365bbd375b95bc Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 3 Feb 2024 11:18:01 -0500 Subject: [PATCH] GoLand Spelling fixes --- cmd/playground/shopping.go | 2 +- cmd/playground/test.go | 1 + cmd/playground/wallArea.go | 8 ++++---- votes.txt | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/playground/shopping.go b/cmd/playground/shopping.go index f000be7..3952b12 100644 --- a/cmd/playground/shopping.go +++ b/cmd/playground/shopping.go @@ -51,7 +51,7 @@ func (m shoppingModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.cursor++ } - // The "enter" key and the spacebar (a literal space) toggle + // The "enter" key and the space bar (a literal space) toggle // the selected state for the item that the cursor is pointing at. case "enter", " ": _, ok := m.selected[m.cursor] diff --git a/cmd/playground/test.go b/cmd/playground/test.go index c88606c..bf8ba14 100644 --- a/cmd/playground/test.go +++ b/cmd/playground/test.go @@ -48,6 +48,7 @@ func (m testModel) View() string { } func terminalTest() { + //goland:noinspection SpellCheckingInspection,SpellCheckingInspection items := []list.Item{ item{title: "Raspberry Pi’s", desc: "I have ’em all over my house"}, item{title: "Nutella", desc: "It's good on toast"}, diff --git a/cmd/playground/wallArea.go b/cmd/playground/wallArea.go index 332cf15..00a7edf 100644 --- a/cmd/playground/wallArea.go +++ b/cmd/playground/wallArea.go @@ -13,7 +13,7 @@ func paintNeeded(width float64, height float64) (paintNeededCalculated float64, return area / 10.0, nil } -func printListersNeeded(amount float64) { +func printLitersNeeded(amount float64) { fmt.Printf("%.2f liters needed\n", amount) } @@ -23,21 +23,21 @@ func wallArea() { if err != nil { fmt.Println(err) } else { - printListersNeeded(amount) + printLitersNeeded(amount) } total += amount amount, err = paintNeeded(-5.2, 3.5) if err != nil { fmt.Println(err) } else { - printListersNeeded(amount) + printLitersNeeded(amount) } total += amount amount, err = paintNeeded(5.2, 5.0) if err != nil { fmt.Println(err) } else { - printListersNeeded(amount) + printLitersNeeded(amount) } total += amount fmt.Printf("Total: %.2f liters\n", total) diff --git a/votes.txt b/votes.txt index 0a9928a..99e1cb7 100644 --- a/votes.txt +++ b/votes.txt @@ -93,5 +93,5 @@ Brian Martin Amber Graham Brian Martin Amber Graham -Carloz Diaz +Carlos Diaz Silly name \ No newline at end of file