GoLand Spelling fixes

This commit is contained in:
John O'Keefe 2024-02-03 11:18:01 -05:00
parent f68fdf3d9b
commit ce125279ca
4 changed files with 7 additions and 6 deletions

View File

@ -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]

View File

@ -48,6 +48,7 @@ func (m testModel) View() string {
}
func terminalTest() {
//goland:noinspection SpellCheckingInspection,SpellCheckingInspection
items := []list.Item{
item{title: "Raspberry Pis", desc: "I have em all over my house"},
item{title: "Nutella", desc: "It's good on toast"},

View File

@ -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)

View File

@ -93,5 +93,5 @@ Brian Martin
Amber Graham
Brian Martin
Amber Graham
Carloz Diaz
Carlos Diaz
Silly name