diff --git a/driver/driver.go b/driver/driver.go index d5860036..6cbf6693 100644 --- a/driver/driver.go +++ b/driver/driver.go @@ -202,7 +202,7 @@ type Sym struct { // A UI manages user interactions. type UI interface { - // Read returns a line of text (a command) read from the user. + // ReadLine returns a line of text (a command) read from the user. // prompt is printed before reading the command. ReadLine(prompt string) (string, error) diff --git a/internal/driver/settings.go b/internal/driver/settings.go index b784618a..5011a066 100644 --- a/internal/driver/settings.go +++ b/internal/driver/settings.go @@ -102,7 +102,7 @@ func configMenu(fname string, u url.URL) []configMenuEntry { UserConfig: (i != 0), } } - // Mark the last matching config as currennt + // Mark the last matching config as current if lastMatch >= 0 { result[lastMatch].Current = true } diff --git a/internal/plugin/plugin.go b/internal/plugin/plugin.go index c9345510..f2ef9871 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -175,7 +175,7 @@ type Sym struct { // A UI manages user interactions. type UI interface { - // Read returns a line of text (a command) read from the user. + // ReadLine returns a line of text (a command) read from the user. // prompt is printed before reading the command. ReadLine(prompt string) (string, error)