Fix typos (#764)

Found via `codespell -S static,data -L selct`
This commit is contained in:
Kian-Meng Ang
2024-11-18 14:08:29 +08:00
committed by GitHub
parent 7fe302ed7c
commit 08b1ea71e7
5 changed files with 6 additions and 6 deletions

View File

@@ -215,7 +215,7 @@ func startServer() {
err := router.Run(fmt.Sprintf("%v:%v", options.HTTPHost, options.HTTPPort))
if err != nil {
fmt.Println("Cant start server:", err)
fmt.Println("Can't start server:", err)
if strings.Contains(err.Error(), "address already in use") {
openPage()
}

View File

@@ -181,7 +181,7 @@ func ParseOptions(args []string) (Options, error) {
homePath, err := homedir.Dir()
if err != nil {
fmt.Fprintf(os.Stderr, "[WARN] cant detect home dir: %v", err)
fmt.Fprintf(os.Stderr, "[WARN] can't detect home dir: %v", err)
homePath = os.Getenv("HOME")
}