Fix typos

This commit is contained in:
Hedy Li 2022-01-08 21:44:57 +08:00
parent 9e6f22c196
commit 9ba3f885c4
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
4 changed files with 4 additions and 4 deletions

2
cmd.go
View File

@ -35,7 +35,7 @@ func printHelp() {
minSepSpaceLen := 2 // min space between command and the description
// Here comes the fun part
// We are now *actually* printing the help
fmt.Println("You can directy enter a url or link-index (number) at the prompt.")
fmt.Println("You can directly enter a url or link-index (number) at the prompt.")
fmt.Println()
fmt.Println("Otherwise, there are plenty of useful commands you can use.")
fmt.Println("Arguments are separated by spaces, and quoting with ' and \" is supported\nlike the shell, but escaping quotes is not support yet.")

View File

@ -31,7 +31,7 @@ var (
// QuotedFields is an alternative to strings.Fields (see:
// https://golang.org/pkg/strings#Fields) that respects spaces between matching
// pairs of quotation delimeters.
// pairs of quotation delimiters.
//
// For instance, the quoted fields of the string "foo bar 'baz etc'" would be:
// []string{"foo", "bar", "baz etc"}

View File

@ -40,7 +40,7 @@ var (
// quoteStyle = color.New(color.Italic).SprintFunc()
)
// GeminiParsedURL fetches u and retruns *GeminiResponse
// GeminiParsedURL fetches u and returns *GeminiResponse
func GeminiParsedURL(u url.URL) (res *GeminiResponse, err error) {
host := u.Host
// Connect to server

View File

@ -19,7 +19,7 @@ type SpartanResponse struct {
connClosed bool
}
// SpartanParsedURL fetches u and resturns a SpartanResponse
// SpartanParsedURL fetches u and returns a SpartanResponse
func SpartanParsedURL(u *url.URL) (res *SpartanResponse, err error) {
host := u.Host
if u.Port() == "" {