docs: fix typos and clean up comments

This commit is contained in:
Glenn Gonda
2023-02-18 20:30:17 -08:00
committed by Christian Rocha
parent 76c3c1a221
commit 4880cf2a09
9 changed files with 12 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ func ccnValidator(s string) error {
func expValidator(s string) error {
// The 3 character should be a slash (/)
// The rest thould be numbers
// The rest should be numbers
e := strings.ReplaceAll(s, "/", "")
_, err := strconv.ParseInt(e, 10, 64)
if err != nil {

View File

@@ -87,7 +87,7 @@ func (m model) Init() tea.Cmd {
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.WindowSizeMsg:
// If we set a width on the help menu it can it can gracefully truncate
// If we set a width on the help menu it can gracefully truncate
// its view as needed.
m.help.Width = msg.Width

View File

@@ -56,7 +56,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, nil
}
// Views return a string based on data in the model. That string which will be
// View returns a string based on data in the model. That string which will be
// rendered to the terminal.
func (m model) View() string {
return fmt.Sprintf("Hi. This program will exit in %d seconds. To quit sooner press any key.\n", m)

View File

@@ -1,6 +1,6 @@
package main
// A simple program demonstrating the text input component from the Bubbles
// A simple program demonstrating the textarea component from the Bubbles
// component library.
import (

View File

@@ -123,7 +123,7 @@ func (m model) View() string {
return indent.String(s, 1)
}
// processFinishedMsg is send when a pretend process completes.
// processFinishedMsg is sent when a pretend process completes.
type processFinishedMsg time.Duration
// pretendProcess simulates a long-running process.