From be81aee2d733566bc97081fc03f71cc0d4467009 Mon Sep 17 00:00:00 2001 From: guangwu Date: Mon, 15 Apr 2024 22:49:54 +0800 Subject: [PATCH] fix: typos in comment (#841) Signed-off-by: guoguangwu --- driver/driver.go | 2 +- internal/driver/settings.go | 2 +- internal/plugin/plugin.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/driver.go b/driver/driver.go index d5860036c..6cbf66939 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 b784618ac..5011a0666 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 c93455103..f2ef98718 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)